Given that I have to apply these options on a very regular basis, I’d know them by heart. Nope.
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
Suspend can be set to “y” if you need to get the debugger attached before anything runs. Tomcat allows this to be set with
export JPDA_SUSPEND=y ./catalina.sh jpda run
Documentation on the options themselves is here.
Updated 23/8/2015 for agent-based JDB protocol.