The Globals window displays a list of all variables that are global to the program. The operations available on the entries in this window are the same as the Watch window, except you cannot add or delete variables from the Globals window.

Globals window user interface

The Globals window consists of a toolbar and main data display.

Globals toolbar

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 range displayed in the active memory window to where the selected item is stored.
Sorts the variables alphabetically by name.
Sorts the 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 updates to show the active stack frame and new variable values. Items that have changed since they were previously displayed are highlighted in red.

To activate the Globals window:

Changing the display format

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

To change the display format of a global variable:

—or—

To modify the value of a global variable: