You can display the value of expressions or complex type declarations like structures, arrays, and classes, in Evaluations windows.
To evaluate variables:
- Select Debug > Evaluate….
The Evaluate dialog box appears. Use this dialog box to define the expression you want to evaluate.
- Enter the expression you want to evaluate in the Expression field or select one from the drop-down list.
The Browse button opens the Symbol Selector dialog box to select an appropriate symbol from the list. See Symbol Selector Dialog Box: Simple Search Tab.
- Select the format of the displayed result by checking a Format radio button.
Possible values are Default, Decimal, Hexadecimal, Octal, Binary or ASCII.
If the expression denotes a pointer to a character string, ASCII may be useful. If you select ASCII, enter the number of characters to be displayed in the Length field.
- Select a memory access by checking a Memory access radio button.
Some memory areas permit Byte-wise, Word-wise or Long-wise memory access only. If the target behaves in this very restrictive way, the type of memory access can be chosen from the Memory access field. In most cases, the default, Byte access, works fine.
- Check the Window check box.
This option is available in multiple display mode for Evaluations windows only.
When this checkbox is not checked, the debugger shows the result is only once in the Console window, and does not update this result.
When this checkbox is checked, the Evaluations 1 window shows the result, and updates it each time the application stops.
- Click OK.
The Evaluations window is updated with the new value.