Author Topic: Blank watches windows  (Read 3856 times)

Offline plentyofbugs

  • Single posting newcomer
  • *
  • Posts: 2
Blank watches windows
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Blank watches windows
« Reply #1 on: March 30, 2011, 03:36:19 pm »
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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline plentyofbugs

  • Single posting newcomer
  • *
  • Posts: 2
Re: Blank watches windows
« Reply #2 on: April 13, 2011, 03:02:03 pm »
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

Offline m.29

  • Multiple posting newcomer
  • *
  • Posts: 25
Re: Blank watches windows
« Reply #3 on: April 13, 2011, 03:14:00 pm »
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.
Windows XP SP3, wxWidgets 2.8.11, C::B DEBUGGER BRANCH nightly builds