Quickly enable Tomcat remote debugging (Linux system)

Source: Internet
Author: User

Quickly enable Tomcat remote debugging (Linux system)

1. Install Tomcat on Linux, publish the project to a Linux server, and be sure to keep the local and server code consistent.

2. Locate bin/startup.sh on the Tomcat installation path and modify the last line of the startup.sh file

Before modification: Exec "$PRGDIR"/"$EXECUTABLE" start "[email protected]"

Modified: Exec "$PRGDIR"/"$EXECUTABLE" jpda start "[Email protected]"

At this point, the Tomcat configuration has been modified to start Tomcat.

3. Open Eclipse, free to open a Java file, right--->debug as--and Debug Configuration click into the interface,

Then find the remote Java application right-click New

Click Apply after setting up, then click Debug. Finally debug mode started to debug the program, then you can enjoy the debugging!!!

Quickly enable Tomcat remote debugging (Linux system)

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.