java语言调试
程序端
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=<PORT>
调试器端
jdb -connect com.sun.jdi.SocketAttach:port=<PORT>
常用命令
stop at <class>:<line-number>
stop in <class>.<method>
clear <class>:<line-num>
cont
threads
where
next
step
参考
https://www.jianshu.com/p/1170c5fd4975
https://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html 这里介绍的dt_shmem没有调通