Step: If the app on Tomcat is deployed with Eclipse packaging, the code is consistent.
1, before deploying the application Remote-debug on machine A, you need to configure the debug port for Tomcat on machine A. Add a debug.bat/sh content to the ${tomcat}/bin under
Set jpda_address=8000
Set Jpda_transport=dt_socket
Catalina.bat JPDA Start setting the debug port to 8000, turn on Debug.bat. You can access the application http://192.168.100.112:8080/remote-debug/xxx.2, select the Remote-debug application on the Eclipse debug Machine B, configure the Debug configuration; Refer to: HTTP://BLOG.CSDN.NET/SUNYUJIA/ARTICLE/DETAILS/2614614:HTTP://BLOG.SINA.COM.CN/S/BLOG_86A6730B0101IEAN.HTML3. On Step 2, click on the Apply->debug. The green strips go through to prove the commissioning ready. 4. Set breakpoints on machine B debug Code, 5. Debug breakpoints by typing http://192.168.100.112:8080/remote-debug/xxx on machine b browser
Eclipse-tomcat Remote Debugging