1.服务器暴露远程调试端口
java -Xdebug -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8089 -jardemo-1.0.0-SNAPSHORT.jar
2.暴露服务端口
3.触发本地debug
idea->remote->192.168.1.1:8090
并且点击右上角的启动,就进去了
java -Xdebug -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8089 -jardemo-1.0.0-SNAPSHORT.jar
idea->remote->192.168.1.1:8090
并且点击右上角的启动,就进去了