Adding expressions

You can add and view expressions in the Expressions view. The Expressions view is part of the Debug perspective.

To add an expression:

  1. Select Add Watch Expression in the context menu of the Expressions view.
  2. Type the expression that you want to evaluate. For example, (x-5)*3 .
  3. Click OK.

    The expression and its value appear in the Expressions view. When the execution of a program is suspended, all expressions are reevaluated.

Related concepts
C/C++ Development perspective

Related tasks
Debugging

Related reference
Debug views

IBM Copyright Statement