How Eclipse remote Debugging is

Source: Internet
Author: User

When the project is running in the machine, it is easy to debug with other systems. But once deployed to the test machine, you can only look at the log location problem. Today get a new skill, the Web application is deployed on the test machine, and remote debugging is done with Eclipse.

First, a new configuration entry is added to the Tomcat's startup parameters on the test machine:

-agentlib:jdwp=transport=dt_socket,address=6219,server=y,suspend=n

The JDWP protocol is associated with remote debugging.

Then operate Eclipse,run--and Debug configurations


On the "Remote Java application" right click on "New".


Project selects the apps you deploy to the test machine. The ip,port of the host tester is not the port of Tomcat, it is the "address" value in the new parameter that was added when the tomcat startup parameter was just configured.


How Eclipse remote Debugging is

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.