Debug Java Actions Remotely
Last modified: August 19, 2024
Introduction
It is not possible to debug Java actions remotely in Eclipse for applications that are hosted by Mendix Cloud.
To debug the Java actions used in a Mendix microflow, you need to make some configuration changes to the way you start the Mendix Runtime. This how-to will explain how to manage this.
This how-to teaches you how to do the following:
- Edit the server configuration
- Configure remote debugging
Editing the Server Configuration with Extra JVM Parameters
To edit the server configuration with extra JVM parameters, follow these steps:
-
Open the App Settings.
-
Edit the configuration on the Configurations tab.
-
Go to the Server tab of the configuration, add the following line to the Extra JVM parameters field:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
-
Run your application.
Configuring Remote Debugging
In your Java IDE, you need to configure remote debugging.
To configure Eclipse, follow these steps:
- Open the app in Eclipse.
- Open the menu with the bug icon or the Run menu.
- Select Debug Configurations.
- In the left menu bar, select Remote Java Application.
- Right-click New.
- Be sure your current app is under App, and change the port to 5005 (view the JVM parameters).
- Click Debug.
Read More
- Find the Root Cause of Runtime Errors
- Clear Warning Messages in Mendix
- Test Web Services Using SoapUI
- Monitor Mendix Using JMX
- Debug Java Actions