I have a Windows service (that is, a native .exe) spawning the JVM, loading a bunch of JAR files and invoking their Java code.
How can I remotely debug the Java code running in the service process space?
Note: I tried to use the Java Control Panel to add the usual Runtime Parameters: -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4321,suspend=n
but apparently these are not read by the spawned JVM, since the aforementioned port is not open on my system.