In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article focuses on "remote programs to open debug configuration and new IDEA remote mode methods", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "remote programs to open debug configuration and new IDEA remote mode method" it!
1. Remote program opens debug configuration
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
If it is a program run by tomcat, you can add configuration parameters in the / bin/catalina.sh file (at the beginning)
Export CATALINA_OPTS= "- agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" or export JAVA_OPTS= "- agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
If it is a program run by java-jar, you can configure the environment variable.
Java-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005-jar app.jar
two。 New IDEA remote mode
3. Click the Debug button to view the port connection
Netstat-anp | grep 5005
Like the figure above, a connection has been established and you can break the point in the idea source code.
At this point, I believe you have a deeper understanding of the "remote program to open debug configuration and new IDEA remote mode", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.