Remote debugging a Java application running as a Windows service

My Java application is launched from the firmware through java.dll. This native program runs as a service on Windows.

The following parameters have been added to the JVM arguments for remote debugging:

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n 

In this configuration, you cannot connect, for example. my Eclipse workspace. If the program is launched from the command line, that is, not as a service, I can connect to port 8787.

How to enable remote debugging connections to this service?

+2
source share
1 answer

It makes no difference if it works as a service or from the command line.

Please double check that java.exe receives these command line options when starting as a service.

+7
source

All Articles