Evaluating Expressions

When a thread suspends, the debugger supports expression evaluation in the context of a stack frame in that thread.

1.

Select the stack frame in which an evaluation is to be performed.

2.

Enter an expression in the Display view or in the Java editor when it is displaying source and it is not read-only.

3.

In the Display view or in the Java editor, select the expression to be evaluated and select Display or Inspect from its context menu.

4.

The result of evaluating the expression is shown in the Display view (if Display was chosen), or in the Inspector (if Inspect was chosen).

Note: Expression evaluation is not supported in class files or inner types.