A bozo's blog
Add
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
on the java command line, and attach to address 800 with a debugger like JDebugTool