当前位置:网站首页>Remotely debug idea, configure remote debug, and add JVM startup parameter -xdebug in the program of remote server
Remotely debug idea, configure remote debug, and add JVM startup parameter -xdebug in the program of remote server
2022-07-27 23:34:00 【But don't ask about the future】
List of articles
Preface
stay The locally developed program runs on the server and reports an error And Lack of log information or even error logs when , Need to pass through Remote debugging To debug the program on the server
1. idea To configure remote debug
1.1 In the server program , add to JVM Launch parameters
stay Script to start the program in , namely java -jar command after , Add parameters that support remote debugging ( Default choice 5005 port , To avoid port conflicts , Other ports that are not commonly used can be selected )
-Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n
Parameter meaning :
-XDebug Enable remote debugging
-Xrunjdwp load JDWP Of JPDA Refer to the execution example
transport Used in debugging programs and VM Communication between processes used
dt_socket socket transmission
server=y/n VM Does it need to be executed as a debugging server
address=5005 The port number that the debugging server listens to
suspend=y/n Whether to start after debugging the client to establish a connection VM
Such as :
1.2 idea Connect to remote server , Remote debugging
Click on Add Configuration Then choose Remote
Set the remote server Ip And remote debugging port 
After adding breakpoints in local code , You can debug the code on the remote server 

notes :
If the firewall between the remote server and the local is not opened , You cannot perform remote debugging , It can be done by telnet ip port Command test communication 
2. Remote debugging principle
Java The program is unified in the form of bytecode JVM Run in , As long as the local code is the same as the class file on the remote server , Two JVM Communication through debug protocol , The local source code can be connected to the remote server JVM, Then perform remote debugging
边栏推荐
- 深入了解 XXE 注射
- Lianmai live broadcast system software - voice chat system
- 日产1500万只!比亚迪口罩拿下美国加州10亿美元订单
- XML external entity (xxE) vulnerability and its repair method
- Figure basic knowledge code
- [number recognition] handwritten number recognition based on knowledge base with matlab code
- [elm classification] classification of UCI data sets based on nuclear limit learning machine and limit learning machine, with matlab code
- iMeta | 国际标准刊号ISSN印刷版正式确认,双ISSN申请完成
- Google executives: 40% of "generation Z" are more willing to use tiktok to cannibalize Google's core products
- Vulnhub range double trouble
猜你喜欢

Exercise --- BFS

The technology of applet container is very promising, which can greatly improve the efficiency of mobile R & D

Lanproxy映射本地开发环境

用户画像在科技期刊微信公众号精准推送中的应用

See how Gan controls the image generation style step by step? Explain the evolution process of stylegan in detail

【GNN报告】加拿大蒙特利尔唐建:Geometric Deep Learning For Drug Discovery

Visual display method of machine learning project

WWW 2019 | HAN:异质图注意力网络
Blood spitting finishing nanny level series tutorial - playing Fiddler bag capturing tutorial (5) - detailed explanation of fiddler monitoring panel

How to quickly view the API properties and usage of the h.265 video player easyplayer?
随机推荐
Safety foundation 2
NB-IoT产业的现状与未来:跨过1亿出货门槛,奔向5G大连接!
WWW 2019 | HAN:异质图注意力网络
Exercise --- BFS
Pro multi store version system, versatile is it!
The principle and demonstration of service path lifting without quotation marks
机器学习项目可视化展示方法
我年薪100万,全身上下没有超过100块的衣服:存钱,是最顶级的自律
Huawei Hongmeng 3 was officially released, and this security feature has solved a major pain point
初步了解Panda3D音频和高级交互组件
【CVA估值训练营】如何快速读懂上市公司年报——第四讲
微信安装包11年膨胀575倍,UP主:“98%的文件是垃圾”;苹果应用商店被曝大量色情App;四大科技巨头呼吁废除闰秒|极客头条
编辑复制粘贴判定问题(bug?),所见即所得显示符号问题反馈。
360入选中国安全产业全景图63个领域 ISC2022共话安全服务方向
【信号去噪】基于卡尔曼滤波实现信号去噪附matlab代码
Disable caching with meta HTML tags in all browsers
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: un
一加将在2020年释放ODM订单,发力中低端市场
一位软件投资者的独白:我为什么不追逐快速增长的公司
Harmonyos third operation