Can I debug with VSCode?

Created at 20 May 2024, 23:13
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
CL

Clark22

Joined 17.05.2024

Can I debug with VSCode?
20 May 2024, 23:13


Hi,

 

Can I debug with VSCode?

No attachment window opens for me like in the VS examples.

 

Thanks,

Clark


@Clark22
Replies

PanagiotisCharalampous
21 May 2024, 06:09

Hi Clark,

Yes you can use any .Net IDE you want.

Best regards,

Panagiotis 


@PanagiotisCharalampous

Clark22
21 May 2024, 10:33

RE: Can I debug with VSCode?

PanagiotisCharalampous said: 

Hi Clark,

Yes you can use any .Net IDE you want.

Best regards,

Panagiotis 

Why doesn't the Attach debugger window open please? I'm following the VS example exactly, but with VSCode. 

Breakpoints set (Yes).

Building debug version (yes, confirmed).

Launch command reached according to logging when it runs. (Yes).

But the pop window doesn't show to choose and attach the debugger prior to the bot starting.
Is there another procedure to do with VSCode?

 

Cheers,

Clark


@Clark22

PanagiotisCharalampous
21 May 2024, 11:31

RE: RE: Can I debug with VSCode?

Clark22 said: 

PanagiotisCharalampous said: 

Hi Clark,

Yes you can use any .Net IDE you want.

Best regards,

Panagiotis 

Why doesn't the Attach debugger window open please? I'm following the VS example exactly, but with VSCode. 

Breakpoints set (Yes).

Building debug version (yes, confirmed).

Launch command reached according to logging when it runs. (Yes).

But the pop window doesn't show to choose and attach the debugger prior to the bot starting.
Is there another procedure to do with VSCode?

 

Cheers,

Clark

Hi Clark,

Read below how you can use Visual Code for debugging

https://code.visualstudio.com/docs/csharp/debugging#_attaching-to-a-process

Best regards,

Panagiotis


@PanagiotisCharalampous

Clark22
23 May 2024, 15:36 ( Updated at: 24 May 2024, 05:28 )

RE: RE: RE: Can I debug with VSCode?

PanagiotisCharalampous said: 

Clark22 said: 

PanagiotisCharalampous said: 

Hi Clark,

Yes you can use any .Net IDE you want.

Best regards,

Panagiotis 

Why doesn't the Attach debugger window open please? I'm following the VS example exactly, but with VSCode. 

Breakpoints set (Yes).

Building debug version (yes, confirmed).

Launch command reached according to logging when it runs. (Yes).

But the pop window doesn't show to choose and attach the debugger prior to the bot starting.
Is there another procedure to do with VSCode?

 

Cheers,

Clark

Hi Clark,

Read below how you can use Visual Code for debugging

https://code.visualstudio.com/docs/csharp/debugging#_attaching-to-a-process

Best regards,

Panagiotis

Thanks, I was able to connect to AlgoHost.exe


@Clark22