第一步:新建SpringBoot项目,创建测试的Controller
二、IDEA新建远程JVM调试
3、将jar包上传到服务器,使用命令启动jar包
注意:
- 服务器上防火墙要开启你的项目端口(8080),和你的调试端口(5005)
4、访问测试
- 1、在idea处打断点,并且启动新建的远程JVM调试服务
- 2、浏览器访问:http://43.143.195.160:8080/remote/debug
可以看到已经成功通过debug访问到了。
注意:
可以看到已经成功通过debug访问到了。
上一篇:Maven打包(war)时候出现jsp不会被打包的问题
下一篇:Jenkins教程
在PyCharm上实现上传代码到远程服务器,并进行远程调试。
0x01 前言一直在纠结有没有必要写这一章的内容,毕竟网上有挺多现成的,但是为了系列文章的完整性,还是写一写。本文将结合着远程调试weblogic来讲解如何使用IDEA调试远程应用,如果你还不清楚,建议收藏,方便查阅。0x02 开启JAVA应用的调试模式一个应用想要被远程调试,必须以调试模式运行,对于jar包,开启调试模式也很简单java -Xdebug -Xrunjdwp:transport=d
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M