| |||
| Home > DS-5 Debug perspective and views > Variables view | |||
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.
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.
The following options are available from the toolbar or context menu:
contextLinks 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.
Selects all capabilities currently expanded in the view.
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, &name
the location of the variable, the name of an array, name.
The memory size is set to the size of the variable, using the sizeof keyword.
If the selected variable is currently held in a register,
then displays the Registers view with that register selected. For
example, the variable t might be held in register
R5.
If the selected variable is a pointer, then displays the Memory view with the address where the variable is pointing to in memory, selected.
Enables you to add variable filters to an Expression view. Displays a sub menu that enables you to add to a specific Expressions view.
A list of formats you can use for the variable value. The default is Unsigned Decimal.
The following View Menu options are available:
Displays a new instance of the Variables view.
Refreshes the view.
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.
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.
Sets the reading order for the selected variable value to be left or right justified.
Shows any unicode control characters in the selected variable value.
Selects the unicode control character to insert into the selected variable value.
ARM® DS-5™ Using Eclipse: