## Variables View

The Variables view allows manipulation of the variables or variable hierarchy used in source code. For example, you can change the variable format, change a variables value, add watchpoints, and add global variables.

Figure 1 shows the Variables view with Show Type Names option enabled.

Figure 1 - Variables view showing type names

##### Table 1. Variables view—items

Item | Icons | Explanation
--- | --- | ---
Show Type Names |  | Toggles the display of type names in the Variables view.
Show Logical Structure |  | Not available in C/C++ yet.
Collapse All |  | Collapses all expanded variables into the top level.
Add Global Variables |  | Click to open a window where you can select one or more global variables to display in the Variables view. Global variables appear at the top of the variables list.
Remove Selected Global Variables |  | Click to remove all currently selected global variables from the variables list.
Remove All Global Variables |  | Click to remove all global variables from the variables list.
Menu |  | Enables you to modifiy the Layout to change the view orientation between: horizontal, vertical, or variables pane only. In addition, use Show All Variables to toggle between showing only those variables that are in scope and live or show all local variables, even if redundant. With this option on you will see all of the variables including the multiple defined variables like “i” for your loops and ones that may no longer have accurate values.

#### To open the Variables view

- Click Window > Show View > Variables

The Variables view appears.

##### Related concepts

- Common Debug Actions
- Working with Memory
- Working with Variables

##### Related tasks

- Showing the Variables View
- Showing Global Variables

##### Related References

- Expressions View