Title: After you publish the project to the server, the project on the local debug server
1, configure Tomcat, locate the Startup.bat copy in the Tomcat bin directory renamed Startup-debug.bat, open Find call "%executable%" Start%cmd_line_args%, will it
Change to call "%executable%" JPDA start%cmd_line_args%, add on top of it
Set Jpda_transport=dt_socket
Set jpda_address=8088
Note: This is the debug port number, which is the port number when eclipse is connecting to the server, not the Tomcat server port number, and if the conflicts fail to start successfully, I have the server port number 8089 here.
Set Jpda_suspend=n
Then double-click Startup-debug.bat to start the server
2, open Eclipse, open the debug icon, you can see the debug configurations Find the remote Java application new, configure the Debug project ( The project source in eclipse must be the same as the war in the server ) IP, CONFIGURED port number, here is 8088, then Apply,debug
3, after we make breakpoints in the source code, access to the server project, debugging
Eclipse Remote Debugging Tomcat