IDEA远程调试代码

一、设置远程调式端口

点击Remote

image-20200524210945983

设置名字和要部署的远程服务器IP地址和端口

image-20200524211322437

二、将Jar包上传到远程服务器运行

启动命令

java -Xdebug -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8888 -jar MyBatisPlus-1.0.0-SNAPSHOT.jar

image-20200524211836199

三、启动远程调试

image-20200524211931344

image-20200524212440369

访问远程服务器地址http://192.168.17.101:8080/customerInfo/selectCustomerByGtId即可在本地调试

image-20200524212404926

作者(Author):小强崽
来源(Source):https://www.wuduoqiang.com/archives/IDEA远程调试代码
协议(License):署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
版权(Copyright):商业转载请联系作者获得授权,非商业转载请注明出处。 For commercial use, please contact the author for authorization. For non-commercial use, please indicate the source.

posted @ 2021-03-12 21:49  小强崽  阅读(162)  评论(0编辑  收藏  举报