How to run an external tool in Eclipse in debug mode

For various reasons, my project can only run as a finished and packaged JAR (some magic happens on the build), so I run it as an external tool in Eclipse.

I am lacking debugging functionality. Is there a way to run an external tool in debug mode in Eclipse?

+3
source share
1 answer

You can connect to the remote JVM if it was initialized in debug mode.

i.e. during the launch of the remote application, you must pass the JVM arguments as shown below: -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=6079,server=y,suspend=n

Eclipse, " ", " Java". , (6079 ).

+5

Source: https://habr.com/ru/post/1711248/


All Articles