Variables View
The Variables view displays the values of variables in the current execution scope. Used in conjunction with the Debug view, the Variables view allows you to see the values of variables in the routine in which execution halted. If the calling context changes during execution—as when stepping into a procedure or function—the variable list changes to reflect the current context.

Note
You can also see the value of a variable by hovering the mouse pointer over an instance of the variable name in an editor window that shows the routine in which execution halted.
To add the Variables view to the current perspective, click Window → Show View → Variables.
View Display
The Variables view displays the following types of variables:
The Variables view can display the following variable attributes:
Details Pane
The Variables view has an optional Details pane that displays extended information. Selecting a variable name row in the view displays the variable value (or array values) in the Details pane.
The Details pane is displayed by default. To hide the Details pane, on the Variables view toolbar select Menu → Layout → Variables View Only.
To display the Details pane, on the Variables view toolbar select Menu → Layout → Vertical View Orientation or Menu → Layout → Horizontal View Orientation.
The following screen shot shows the Variables view in the horizontal view orientation:

If a selected variable is not an array, the Details pane merely displays the variable value (identical to that listed in the Value column). For array variables, the Details pane displays the element values. The displayed element range of each dimension is defined by the Print Dimensions row (which is by default collapsed underneath the array row).
For example, in a three-dimensional array of ten elements per dimension, the default behavior is to display the top slice of the matrix. The Value column of the Print Dimensions row represents this as:
In this notation, the displayed elements of a dimension are delimited by a colon, and dimensions are separated by commas. In this example, elements 0-9 are displayed for the first two dimensions, and element zero is displayed for the third dimension.
You could change the element ranges to display the entire array:
Or, you could display the third slice of the matrix:
In this way, you can specify exactly which elements of an array to display.
Changing a Variable Value
You can change scalar values only. You may alter structure fields, but only if the field value is a scalar type. You may not alter pointer or object reference values.
To edit a variable in the Value column:
To edit a variable using the Change Value... menu item:
To edit a variable in the Details pane:
Deleting Variables
You can delete variables from IDL's $MAIN$ scope. (Variables in the program scope of a running routine cannot be deleted.)
To delete variables:
Renaming a Variable
You can rename variables in IDL's $MAIN$ scope. (Variables in the program scope of a running routine cannot be renamed.)
To rename a variable:
Toolbar
The toolbar of the Variables view contains the following buttons:
