Quickly enable Tomcat remote debugging (Linux system)
1. Install Tomcat on Linux, publish the project to a Linux server, and be sure to keep the local and server code consistent.
2. Locate bin/startup.sh on the Tomcat installation path and modify the last line of the startup.sh file
Before modification: Exec "$PRGDIR"/"$EXECUTABLE" start "[email protected]"
Modified: Exec "$PRGDIR"/"$EXECUTABLE" jpda start "[Email protected]"
At this point, the Tomcat configuration has been modified to start Tomcat.
3. Open Eclipse, free to open a Java file, right--->debug as--and Debug Configuration click into the interface,
Then find the remote Java application right-click New
Click Apply after setting up, then click Debug. Finally debug mode started to debug the program, then you can enjoy the debugging!!!
Quickly enable Tomcat remote debugging (Linux system)