## Global Variables Window

The Global Variables window shows all global and static variables for each process that you debug. You can open separate Global Variables windows for each process in the same build target. Use the window to observe changes in variable values as the program executes.

Figure 1 shows the Global Variables window. Table 1 explains the items in the window.

Figure 1 Global Variables window

##### Table 1 Global Variables window—items

Item | Explanation
--- | ---
File | Lists source files that declare global or static variables. Click a source file to view its static variables. Click Global Variables to view all global variables declared in the program.
Variables | Lists variables according to the file selected in the File pane. Double-click a variable to display it in a separate Variable window.

##### Opening the Global Variables Window

Use the Global Variables window to display global variables declared in a program or static variables declared in source files that comprise the program.

- To open the Global Variables window, select View > Global Variables or Window > Global Variables Window.

##### Viewing Global Variables for Different Processes

You can open a separate Global Variables window for each process that the same parent application creates.

To open the Global Variables window for a particular process, follow these steps:

1. Click Project > Debug.

A debugging session starts.

2. In the Thread window toolbar, use the Process list box to specify the process that has the global variables that you want to examine.
3. Click View > Global Variables or Window > Global Variables Window.

Repeat these steps for each process that has global variables that you want to examine.