使用idea开启远程调试功能
发布时间:2023年12月20日
1:点击EditConfigurations
????????
2:在弹出框中点击加号,选择Remote JVM Debug
????????
3:配置连接信息
????????
4:点击应用Apply
????????
5:修改启动脚本
? ? ? ? 在java?此处放入远程JVM配置参数(即第三步复制的内容)?-jar?xxx.jar
6:以新脚本启动远程服务器中的项目
7:选择新配置的test项目debug启动idea
????????
注意:
? ? ? ? 此时可打断点调试远程项目。但是要保证本地代码与远程代码匹配,否则断点可能打错位置或无效。
文章来源:https://blog.csdn.net/weixin_49990593/article/details/135106474
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:chenni525@qq.com进行投诉反馈,一经查实,立即删除!