The globals window displays a list of all variables that are global to the program.  The operations available on the entries in the globals window are the same as the watch window except that variables cannot be added to or deleted from the globals window.

Globals window user interface

The Globals window is divided into a tool bar and the main data display.

Globals tool bar
Button Description
Displays the selected item in binary.
Displays the selected item in octal.
Displays the selected item in decimal.
Displays the selected item in hexadecimal.
Displays the selected item as a signed decimal.
Displays the selected item as a character or Unicode character.
Sets the displayed range in the active memory window to the where the selected item is stored.
Sorts the global variables alphabetically by name.
Sorts the global variables numerically by address or register number (default).

Using the Globals window

The Globals window shows the global variables of the application when the debugger is stopped. When the program stops at a breakpoint or is stepped, the Globals window automatically updates to show the active stack frame and new variable values. Items that have changed since they that were previously displayed are highlighted in red.

Showing the Globals window

To display the Globals window if it is hidden, do one of the following:

—or—

—or—

—or—

Changing display format

When you select a variable in the main part of the display, the display format button highlighted on the Globals window tool bar changes to show the item’s display format.

To change the display format of a global variable, do one of the following:

—or—

Modifying global variable values

To modify the value of a global variable, do one of the following:

—or—