Script Analytics

2012/12/22

How to debug a remote Java application

It is not worth an entry but... I always forgot how to remotely debug a jvm :

Firstly, jvm options :
-Xdebug : Enables debugging support in the VM
-Xrunjdwp:<options> : Loads in-process debugging libraries and specifies the kind of connection to be made (Xrunjdwp parameters)
I use -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000