IDEA远程DEBUG调试

在IDEA中配置

修改启动脚本

使用第一步得到的脚本:-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
改造启动脚本命令:

1
2
3
nohup java \
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=50055 \
-jar remote-debug-0.0.1-SNAPSHOT.jar &

注意在windows中用 ^ 来进行换行

可以开始调试了


IDEA远程DEBUG调试
http://liushuliang.github.io/2024/07/26/IDEA远程DEBUG调试/
作者
刘公子
发布于
2024年7月26日
许可协议