Describes the view content.
This view enables you to:
see the contents of variables that are currently in scope
change the values for variables that are currently in scope
freeze the selected view to prevent the values being updated by a running target.
Figure 10-24 Variables view
Right-click on the column headers to select the columns that you want displayed:
The name of the variable.
The value of the variable.
Read-only values are displayed with a grey background. Any other color means that you can edit the value.
A value that you can edit is initially shown with a white background. If the value changes, either by performing a debug action such as stepping or by you editing the value directly, the background changes to yellow.
If you freeze the view, then you cannot change a value.
The type of the variable.
The number of array or pointer elements.
The size of the variable in bits.
The address of the variable.
All columns are displayed by default.
Toolbar and context menu options
The following options are available from the toolbar or context menu:
- Linked: context
Links this view to the selected connection in the Debug Control view. This is the default. Alternatively you can link the view to a specific connection. If the connection you want is not shown in the drop-down list you might have to select it first in the Debug Control view.
Searches the data in the current view for a variable.
Copies the selected variables. To copy the contents of an item such as a structure or an array, you must first expand that item.
This is useful if you want to copy the selected variables to a text editor and compare the values when execution stops at another location.
- Select All
Selects all capabilities currently expanded in the view.
- Show in Memory
Where enabled, displays the Memory view with the address set to either:
the value of the selected variable, if the variable translates to an address, the address of an array,
the location of the variable, the name of an array,
The memory size is set to the size of the variable, using the
- Show in Registers
If the selected variable is currently held in a register, then displays the Registers view with that register selected. For example, the variable
tmight be held in register R5.
- Show Dereference in Memory
If the selected variable is a pointer, then displays the Memory view with the address where the variable is pointing to in memory, selected.
- Send to Selection
Enables you to add variable filters to an Expressions view. Displays a sub menu that enables you to add to a specific Expressions view.
- format list
A list of formats you can use for the variable value. The default is Unsigned Decimal.
- View Menu
The following View Menu options are available:
- New Variable View
Displays a new instance of the Variables view.
Refreshes the view.
- Freeze Data
Toggles the freezing of data in the current view. This also disables or enables the Refresh Variable View option. Also, you cannot modify the value of a variable if the data is frozen.
If you freeze the data before you expand an item, such as an array, for the first time, the view might show
Pending...items. Unfreeze the data to see the items.
- Editing context menu options
The following options are available on the context menu when you select a variable value for editing:
Copies and deletes the selected value.
Copies the selected value.
Pastes a value that you have previously cut or copied into the selected variable value.
Deletes the selected value.
Reverts the last change you made to the selected value.
- Right to left reading order
Sets the reading order for the selected variable value to be left or right justified.
- Show unicode control characters
Shows any unicode control characters in the selected variable value.
- Insert unicode control character
Selects the unicode control character to insert into the selected variable value.