06_JDWP远程调试详解

JDWP远程调试详解

JDWP:Java Debug Wire Protocol,Java调试协议

java -agentlib:jdwp=help查看帮助

               Java Debugger JDWP Agent Library
               --------------------------------

  (see http://java.sun.com/products/jpda for more information)

jdwp usage: java -agentlib:jdwp=[help]|[

服务端执行如下命令

➜  Desktop java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5050 -jar spring_lecture-1.0.jar 
Listening for transport dt_socket at address: 5050

客户端配置

06_JDWP远程调试详解_第1张图片

debug启动即可进入断点。

你可能感兴趣的:(06_JDWP远程调试详解)