News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Displaying Global Variables in a Debug Watch Window

Started by markj_47, November 01, 2009, 04:00:14 PM

Previous topic - Next topic

markj_47

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?

ollydbg

Quote from: 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?

You should manually add the global variables you want to watch.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

zabzonk

Right-click on the watch window and use the "Add Watch" option to enter the name of the global you are interested in.