Slide 42
Slide 42 text
➜ java
-agentlib:jdwp=transport=dt_socket,server=y,
suspend=y,address=*:5005,onjcmd=y
src/test/java/OnThrowAndJCmd.java &
➜ echo $! # get pid
# wait some time and then start debugging on demand
➜ jcmd $! VM.start_java_debugging
jcmd 97145 VM.start_java_debugging
97145:
Debugging has been started.
Transport : dt_socket
Address : *:5005