Debug
What is remote debugging? When we typically debug a Web project's Java code, we need to integrate your Tomcat server with your development tools (such as JBuilder), or some plug-in support for the tool (such as the Myclipse under Eclipse), which is done locally, That is, your development tools and Tomcat are running on the same server, and if your development tools and servers are no longer on a single machine, you need to implement remote debugging.
Implementation method: Add the following setting to Tomcat's Catalina.bat file, and of course the set catalina_opts variable should precede the use of it. This is to set some virtual machine parameters at Tomcat startup so that the server allows remote connectivity, address=5888 represents the port number of the remote connection, and can be set to any other conflict-free port. Other application servers such as WebLogic should also be able to set these parameters, which are interesting to test.
SET Catalina_opts=-server-xdebug-xnoagent-djava.compiler=none-xrunjdwp:transport=dt_socket,server=y,suspend=n, address=5888 This is OK, restart Tomcat, you can start it up directly without having to start in a Eclipes plug-in. Open the Debug Settings window in Eclipse, select Remote Java application, create a new debug entry, enter the server IP and just set the port number, click OK to enter the debug state. Remote Java application can also be set up in JBuilder.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.