Code::Blocks Forums

User forums => Help => Topic started by: markj_47 on November 01, 2009, 04:00:14 pm

Title: Displaying Global Variables in a Debug Watch Window
Post by: markj_47 on November 01, 2009, 04:00:14 pm
When using the debugger the watches window does not display global variables - only local variables and function arguments.  Any one know of a way to make this display?
Title: Re: Displaying Global Variables in a Debug Watch Window
Post by: ollydbg on November 01, 2009, 04:08:14 pm
When using the debugger the watches window does not display global variables - only local variables and function arguments.  Any one know of a way to make this display?

You should manually add the global variables you want to watch.
Title: Re: Displaying Global Variables in a Debug Watch Window
Post by: zabzonk on November 01, 2009, 04:10:37 pm
Right-click on the watch window and use the "Add Watch" option to enter the name of the global you are interested in.