Evaluations Window

Display the value of expressions after each program stop or complex type declarations like structures, arrays, and classes.

Menu

View > Evaluations > Evaluations 1, 2, 3, or 4

Toolbar

Evaluations

Columns

Expression

Displays the name of an expression.

Value

Displays the value of the evaluated expression. Complex structures, like classes, records or arrays, are displayed in a tree view. Click an expansion icon or double-click an expression to expand or collapse the tree. When you finished your editions, press the Return key or click outside the value modification field.

The value field can contain the following special terms:

<optimized out>: The variable is not available because of compiler optimizations.

<currently unavailable>: The variable is currently not in scope. A value will be displayed as soon as the execution is stopped in the code block where the variable is defined.

To edit a value, double-click it, enter the new value, and press the Return key or click outside the value modification field.

Type

Displays the type of the evaluated expression.

Note

  • You cannot close the Evaluations window until you pressed the Return key or clicked the mouse outside of the value modification field.

  • Changed values appear in the enhanced foreground color, which you specify by selecting Options > GUI Preferences. See GUI Preferences Dialog Box. A gray colored value denotes that the expression is not valid in the current scope.

Pop-up Menu

Note

The pop-up menu might display entries depending on the selected expression and the debug state. For example, if the current scope of an expression is not set, the value cannot be changed, and so some entries might not appear.

Set Value

Enables you to change the values of expressions.

Format

Select between one of the following formats: Hexadecimal, Decimal, Octal, Binary, ASCII, and Default.

Show Type

Opens the Show Type dialog box, which displays the symbol name, address, any references, and type declaration.

Add Evaluation

Opens the Evaluate dialog box, where you can enter the expression to be evaluated.

Remove Evaluation

Deletes an expression from the Evaluations window. This command is not available on the lower levels of an expanded item. You must delete the entire expanded item. Clicking the expansion icon collapses the level.

Create Data Breakpoint

Sets a breakpoint at the selected symbol.

For more complete information about compiler optimizations, see our Optimization Notice.