Groovy Remote Debugging

This feature allows you to debug Groovy scripts on the server. Intrexx does not implement its own debugger; instead, it simplifies the integration of the IntelliJ Remote Debugger.

Please note: This option should only be used for test portals, not for production portals. This option opens a debugging port on the portal. You must ensure that the port is not blocked by the firewall.

Settings in Portal Manager (Server)

The debugging settings can be enabled in the portal properties / options. You can find the portal settings in the "Portal" main menu.

Afterward, the portal service must be restarted.

In addition, the path must be defined in IntelliJ.

You can specify the path via the main menu under "Tools / Options / General / Editor Settings." You can then open the corresponding Groovy script using the external editor.

IntelliJ Remote Debugger - Settings

Clicking "Open External Editor" will now open IntelliJ.

Select "Open in Project" here.

Click "Trust Project" here to confirm.

Select the Groovy directory as the Sources Root Directory.

Next, you need to add framework support for Groovy.

Please note: The default settings for the Groovy version in IntelliJ may differ from the current Groovy version in Intrexx. Please make sure that both versions match here to avoid errors.

Finally, you must create a run configuration for remote debugging.

Select "Edit Configurations" here.

Select "Remote JVM debug" here.

Here, you must specify the host and port that were entered in the Manager.

Now you can set breakpoints and start remote debugging by clicking the debug icon.