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
Display the selected item in binary.
Display the selected item in octal.
Display the selected item in decimal.
Display the selected item in hexadecimal.
Display the selected item as a signed decimal.
Display the selected item as a character or Unicode character.
Set the range displayed in the active Memory window to span the memory allocated to the selected item.
Sort variables alphabetically by name.
Sort 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: