IntelliJ IDEA 13.1.0 Web Help

Run | Evaluate Expression

Editor Context Menu | Evaluate Expression

variables_evaluate_expr

Use this dialog box to calculate values of expressions or code fragments during the debugging session.

Item Description
Expression Use this field to edit the expression to be evaluated. If an expression is selected in the editor, this field displays selection.

Tip

This field is available in the Expression Mode.

Language Choose Java or Groovy from the drop-down list, to enable recognition of the respective syntax of expressions.

Tip

This field is available only for Groovy scripts.

Statements to Evaluate Type the group of statements to be evaluated. If a code fragment is selected in the editor, this field displays selection.

Tip

This field is available in the Code Fragment Mode.

Result Here the results are displayed.
Evaluate Click this button to evaluate the current expression or code fragment.
Close Click this button to close the dialog box.
Code Fragment Mode Click this button to toggle to the Code Fragment Mode.
Expression Mode Click this button to toggle to the Expression Mode.

See Also

Procedures:

Web Resources: