How can I inspect global variables in the variables view?

In Microcontrollers V10.1 and onwards, you can add and view global variables.

You can add or view global variables using the Add Globals dialog box. To open the Add Globals dialog box:

  1. Right click the Variables view in the Debug perspective.
  2. From the context menu, select Add Global Variables .

    The Add Globals dialog box appears.

  3. Select the variable you want to add as global variable.
  4. Click OK .

The following figure shows an example.

Figure 1. Static Global Variables

Static Global Variables