title

fire chief's random developer tidbits
Showing posts with label debugger. Show all posts
Showing posts with label debugger. Show all posts

Friday, December 17, 2010

Debugging remotely and waiting for debugger attachment

Starting with Java 5, you can run a java program this way and have it suspended until you attach a debugger remotely:

-agentlib:jdwp=suspend=y,server=y,transport=dt_socket,address=HOST:PORT

More info here: