Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 2.67 KB

debug-java-actions-remotely.md

File metadata and controls

57 lines (39 loc) · 2.67 KB
title category tags
Debug Java Actions Remotely
Monitoring & Troubleshooting

1 Introduction

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 will teach you how to do the following:

  • Edit the server configuration
  • Configure remote debugging

2 Prerequisites

None.

3 Editing the Server Configuration with Extra JVM Parameters

In this section, you will learn how to configure the security at the prototype/demo level. Be aware that this level of security is only applicable for development/demo purposes. This level is available for the quick development of demo applications. It simulates security without the more complex configuration of data access. When deploying to the Mendix cloud, production security is mandatory.

To edit the server configuration with extra JVM parameters, follow these steps:

  1. Open the project settings.

  2. Edit the configuration.

  3. Go to the Server tab on the Edit Configuration editor and add the following line to the Extra JVM parameters field: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

  4. Next, start your application in Mendix.

4 Configuring Remote Debugging

In your Java IDE, you need to configure remote debugging. This screenshot shows the configuration in IntelliJ:

Mendix Intellij remote debugging

  1. Start the debugger.
  2. Place some breakpoints in your Java code.
  3. Start debugging.

5 Read More