Debugging a Java project that is called via a perl script

I am working on a large Java project which is on eclipse. To use the program, we need to call the perl script in the terminal with parameters, after which the script will call the program. In this case, how can I debug a program in eclipse?

In short: the perl program calls the java program, and I need to debug the Java program in eclipse

+4
source share
1 answer

Perhaps you could do this using remote java debugging in Eclipse .

Your perl script should launch a java application with parameters to enable remote debugging in the JVM, for example

-Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=y 

You then instruct Eclipse to connect to this JVM by creating a debug remote Java application configuration that indicates the correct host / port.

+2
source

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


All Articles