Code::Blocks Forums
User forums => Help => Topic started by: plentyofbugs on March 30, 2011, 03:01:55 pm
-
Hello everybody,
I'm using Codeblocks 10.05 on Windows XP. I can debug my code, insert a breakpoint and use next line button. However, the watches window doesn't display anything: it remains blank. Even if I manually add a variables to watch, I can't see anything.
Anyone to know what's the problem and how to solve it?
Thanks
-
Please try the debugger branch nightly build and report if you still can't see the watches?
Also read this: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks
-
Thank you oBFusCATed,
I installed the nightly of 02 April but it didn't solve the problem.
Even the link you suggested wasn't helpful, as I set only the basic options in my projects:
-project name: enable all compile warnings (overrides many other setting)>> [-Wall];
-debug:prodice debugging symbols [-g];
-release: strip all symbols from binary (minimizes size) [-s],
Optimaze even more (for speed) [-O2].
I have the same problem even in Windows 7.
Thank you for your help
-
Don't use -s option in debug mode, because it strips all debugging symbols added by -g option. I also suggest use -O# option only in release because some variables could be optimized and will not watchable.