Debugging on Mendix using VSCode

I was creating some java actions for my application in mendix, and I would like to know if it is possible - besides editing the code - to debug using vscode? Using some extension or something like that.
2 answers

Yes, it is possible, and it’s how I debug my Java actions.

Firstly, follow the instructions for step 2 on this page. It tells you how to setup Mendix to talk to a remote Java debugger.

In VSCode, make sure you have the “Debugger for Java” from Microsoft installed.

Once you’ve followed the instructions in that link, edit your launch.json and add the following to your configurations.

            "type": "java",
            "name": "Remote Mendix",
            "request": "attach",
            "hostName": "localhost",
            "port": 5005

When you use the debugger in VS Code, you’ll now have an option for “Remote Mendix” to connect to your Mendix application with.

Hope this helps.



Hi Luan,

I’ve never tried this in VSCode, but you can certainly export your project for eclipse (, and run it from there using an Eclipse debug configuration to debug custom java. That’s the process that we normally follow.

I hope this helps!