Viewing and evaluating expressions

You can inspect expressions in the context of a stack frame when the virtual machine (VM) suspends a thread at a breakpoint or it is stepping through code.

About this task

When the VM suspends a thread, you can inspect expressions in the context of a stack frame.

Procedure

To view an expression:

  1. On the Windows menu, click Show View > Expressions.

    You can then select the expression to do an evaluation.

  2. In the Detail pane of the Expressions View, right-click the expression and click one of the options: Display, Inspect, or Execute.

Results

The result of a Display or Inspect evaluation is shown in a pop-up window. The Execute option does not display a result; the expression is run.