美文网首页
Spring-boot项目使用idea远程调试

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

作者: 年轻小伙程序员 | 来源:发表于2020-05-22 11:27 被阅读0次

    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远程调试

          本文链接:https://www.haomeiwen.com/subject/odqqahtx.html