Evaluating expressions

When the VM suspends a thread (due to hitting a breakpoint or stepping through code), you can evaluate expressions in the context of that thread's stack frame.

  1. Select the stack frame in which an evaluation is to be performed. For the detail panes of the Variables and Expressions views, the evaluation context will be a selected variable. If no variable is selected, the selected stack frame will be the context.
  2. Expressions can be entered and evaluated in the following areas:
  3. Select the expression to be evaluated and select Display, Inspect or Execute from the context pop-up menu. The result of evaluating the expression is shown in the Display view (if Display was chosen), or in the Expressions view (if Inspect was chosen).

Note: Evaluations cannot be performed in threads that have been manually suspended.

Related concepts
Debugger
Java editor

Related tasks
Suspending threads
Resuming the execution of suspended threads

Related reference
Display view
Expressions view
Expressions view Show Detail Pane
Variables view
Variables view Show Detail Pane

Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved.