Eclipse Remote Debug

Source: Internet
Author: User

Due to the general comparison of regular projects, there will be several versions, sometimes in the test version, everything is good, and then submitted to other versions will have a variety of problems, this time if not quickly and accurately locate the problem, then we need to use the Eclipse Remote debug debugging tracking it;

PS: Originally thought this is a very poor use of operation, asked the surrounding several colleagues, found that few people will, and then record their own for later use it

1. View IP server IP, Linux command: ifconfig, for example IP: 192.168.10.10

2. Enter the bin directory of the server tomcat, for example: Cd/app/appuser/tomcat/apache-tomcat-7.0.55/bin--View Tomcat's life Order: Ps-ef|grep Tomcat

3. Kill the server tomcat process number, kill-9 process number

4. Execution./catalina.sh jpda start this command,

5. After the fourth step is completed, select the project to run in Eclipse, Debug as-->debug configurations-->remote Java application, then click New, then select the project you want to run on the right, Host  Write server IP, this IP is the first step to query the server IP 192.168.10.10; Port Port number Default 8000

6. Then add a breakpoint, perform the operation of your server into the breakpoint to start debugging.

Eclipse Remote Debug

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.