I want to be able to switch my code easily into "debug mode". I guess you normally put things like this into your code:
....
....
Posted 08 February 2013 - 03:28 PM
I want to be able to switch my code easily into "debug mode". I guess you normally put things like this into your code:
....
....
Posted 08 February 2013 - 03:34 PM
Posted 08 February 2013 - 03:43 PM
If you're using Visual Studio, then go to the project properties and modify the preprocessor definitions field in the C/C++ folder. Be sure only the "Debug" configuration is set.
AFAIK, there's already a widely-accepted define "NDEBUG" that is set when optimizations are configured for the build (i.e., not-debug mode).
Thanks! Im using Netbeans but Ive found it in the project options.