Premise: The source code of the Web project that runs on the remote server must be consistent with the local project
That is, the project for remote Tomcat deployment is that the native project is packaged in the past, and the native project has not changed.
1, Configuration $tomcat_home/bin/catalina.sh
Add the following line
java_opts= "$JAVA _opts-xdebug-xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
Description: Server=y refers to the remote debugger (commonly used) that the target application listens to to connect as a service.
Suspend=y means that the target VM will be paused until the debugger application is connected (useful if debugging startup errors are required);
Suspend=n means that the target VM is not paused;
address=9988 listening port.
2. Check the Tomcat console output to see that the configuration we just had is in effect and the output is as follows:
3. Configuring Eclipse
Select project, configure remote IP and remote port
Finish the call.
Eclipse Remote Debugging (remote server-side monitoring)