IntelliJ IDEA 13.1.0 Web Help

In IntelliJ IDEA, you can run and debug Groovy scripts using the regular procedures:

Besides executing a Groovy script with the permanent run/debug configuration, you can use a temporary one, which is available at the context menu of a script:

GroovyRun.png

Observe results in the Run and Debug tool windows. Note that in Groovy-enabled modules, the debugger is aware of the Groovy syntax, and enables handy evaluation of expressions.

To evaluate Groovy expression
  1. Launch the debugger session, as described in the section Debugging.
  2. When you reach a breakpoint, where you want to evaluate expression, press Alt+F8Shift+Alt+8Shift+Alt+8Alt+F8Alt+F8Alt+F8Alt+F8Ctrl+F9Ctrl+UAlt F8Alt F8Command U.
  3. In the Code Fragment Evaluation dialog box, select Groovy from the Language drop-down list, type the desired expression, and click Evaluate:

    GroovyEvaluateExpression.png
    Click thumbnail to view larger image.

See Also

Concepts:

Procedures:

Reference:

Web Resources: