Tomcat starts debug mode and uses Eclipse remote debugging

Source: Internet
Author: User

Production and test environments can set tomcat boot to debug mode, start a remote listening port, and remotely debug a project in local eclipse to remotely debug tomcat on the specified server.

First, open the Tomcat/bin/catalina.bat file and enter it in the following location: SET catalina_opts=-server-xdebug-xnoagent-djava.compiler=none-xrunjdwp: transport=dt_socket,server=y,suspend=n,address=8000

Note: This input is in the Win7 system, address=8000 is the listening port, can be modified into the system has not yet.

Second, clicking on the project >debug as >debug configurations in eclipse will bring up the following interface:

LocalHost is the server address of the Tomcat deployment, and 8000 is the value of the address in one.

After that, the normal interrupt point is debugged.

Tomcat starts debug mode and uses Eclipse remote debugging

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.