intellij idea远程调试

打开Edit configurations,点击+号,创建一个Remote应用:

在启动springboot时默认使用java命令来启动。
java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 springboot-test-1.0-SNAPSHOT.jar
可以通过以下命令来检查是否监听成功:
netstat -anp | grep 5005

参考博客:https://www.cnblogs.com/senlinyang/p/8516867.html

posted on 2021-01-17 21:32  渐行渐远的那些人  阅读(110)  评论(0编辑  收藏  举报