How to debug MPJExpress locally in IntelliJ IDEA

267 views Asked by At

For eclipse there is an extension available to set debug configurations for MPJExpress. How I can debug an application locally in IntelliJ IDEA. I've tried to set up debugging using vm options in run/debug configurations. With this configuration I get message given below and breakpoint does not get a hit.

MPJ Express (0.44) is started in the multicore configuration

Listening for transport dt_socket at address: 8001

vm options are

-jar $MPJ_HOME$\lib\starter.jar com.owiSoft.Lab6.HelloMPJ -np 4 -device niodev -debug 8001

enter image description here

2

There are 2 answers

0
Talha Junaid On BEST ANSWER

I was able to debug this MPJExpress application by modifying vm optios from

-jar $MPJ_HOME$\lib\starter.jar com.owiSoft.Lab6.HelloMPJ -np 4 -device niodev -debug 8001

to

-jar $MPJ_HOME$\lib\starter.jar com.owiSoft.Lab6.HelloMPJ -np 4 -debug 8000

And added another Remote configuration from Run/Debug Configurations menu

enter image description here

Then started Main configuration, kept it running and switched to RemoteDebugger configuration and started it. Following these steps breakpoint got a hit

1
Aleem On

MPJ Express provides Eclipse Plugin to Execute and Debug MPJ Express Applications in Eclipse. This plugin is very easy to use and do not require different sets commands to remember. Step wise Tutorial and video guides for plugin are provided at MPJExpress website. MPJ Express User Guides and Tutorials

In case somebody directly wants to jump at debugging part without plugin. Follow this youtube tutorial starting from 04:00.