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