Evaluating an Expression

See Also

When you are in a debugging session, you can evaluate any expression to view the values of local variables for the current method, class variables, and method calls.

To evaluate an expression:

  1. Start a debugging session.
  2. Choose Run > Evaluate Expression (Ctrl-F9) from the main window.
  3. Type the expression in the Expression drop-down and click Evaluate. The result is Shown in the Results window.

    You can set a watch for the Expression by clicking the Watch button. The watch is added to the Watches window.

Notes:

See Also
Creating a Watch
Creating a Fixed Watch
Using the Call Stack
About Debugging Java Applications

Legal Notices