Java remote debugging options

To activate socket debugging in java, add the following to java_opts:

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

Then connect to port 8787 using your favorite debugging tool..