Goto: Eclipse Remote debug with Tomcat configuration

Source: Internet
Author: User
Tags goto

Tomcat Implementation method:

Add the following setting to Tomcat's Catalina.bat file, and of course the set catalina_opts variable should be before using it. This is to set some virtual machine parameters at Tomcat startup so that the server allows remote connectivity, address=1861 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=1861
That's OK, restart Tomcat, which can be started directly without having to be started 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.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.