Debugging of the sample cBots and Indicators in Visual Studio

Created at 19 Jan 2021, 17:48
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!
heinrich.munz's avatar

heinrich.munz

Joined 21.11.2020

Debugging of the sample cBots and Indicators in Visual Studio
19 Jan 2021, 17:48


I think I have an info for all of you which could save you some hours of work and frustration:

 

I got problems to debug the original sample cBots and Indicators. It seems that all the samples are always compiled in Release-mode, regardless if Visual Studio is set to Debug or Release. While some breakpoints got hit, a lot of variables etc. have been optimized away.

After several hours of investigation, I found a simple solution:

Just generate a new cBot or Indicator, copy the source code from the sample and build it under the Debug mode of visual Studio.

ISpotware should update all the samples provided, so that debugging is possible with them!

 

 


@heinrich.munz