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