title

fire chief's random developer tidbits

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:

No comments:

Post a Comment