Adding global variables

You can add global variables to the Variables view.

To add global variable:

  1. Choose Project > Debug from the IDE menu bar.

    A debugging session starts.

  2. In the Variables view toolbar, click the Add Global Variables button .

    The Add Globals dialog appears.

    Tip: You can also add a global variable by choosing the Add Global Variable command from the shortcut menu.
    Figure 1. Add Globals dialog

    Add Globals Dialog

  3. Specify a search criteria in the available textbox to filter the list of variables.
  4. Select the global variable to be added.
    Note: Global variables of other executables (other than the main one) are also listed in the Add Globals dialog.
  5. Click OK.