Remote debug Tomcat Project

Source: Internet
Author: User

1. log on to the environment and modify the configuration file of tomcat in the environment. Modify Catalina. SH and startup. Sh in the bin folder of Tomcat.
STEP (1): Modify the Catalina. Sh file:
Add the following content to the first line of the file:
Jpda_address = 15888 15888 is the port number
STEP (2): Modify the startup. Sh file:
Modify the following content in the last line of the file:
Exec "$ prgdir"/"$ executable" JPDA start "[email protected]" add a JPDA Field

2. Select project debug in eclipse
STEP (1): Click the beetle on Eclipse and select debug deployments.
STEP (2): On the debug deployments page, select remote Java application and Right-click a new debug project.
Step (3): Enter the following information in the connect directory:
Project: select a debug project.
HOST: single-board environment IP Address
Port: Port Number of the Single Board Environment
Step (4): In the source directory, first remove the project that requires debugging for the existing default project add

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.