Spring-boot项目使用idea远程调试

1. 修改服务器jar包运行方式 在`java -jar`后面增加 '-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005',

其中5005是服务器需要开放的端口,重新运行jar包

2.idea配置 Run/Debug Configurations中增加 Remote 方式,在host中填写 服务器ip ,port中填写端口

3.启动idea的 Remote

你可能感兴趣的:(Spring-boot项目使用idea远程调试)