Java Web Remote Debugging
Tomcat Download Compressed Edition Server
Environment: Tomcat, Eclipse, remote debugging We don't need other special plugins.
1, Configuration Tomcat/bin/startup.bat
Add code in front: SET catalina_opts=-server-xdebug-xnoagent-djava.compiler=none-xrunjdwp:transport=dt_socket,server =y,suspend=n,address=8000
8000 is the port we are debugging remotely, which is used later. In addition, the command can not be manually wrapped (blog display may be wrapped when the actual configuration, please note).
3. Configuring Eclipse
Click on the debug icon above Eclipse, select Debug configurations, open the window to find the remote Java application, such as:
You can create a remote debug by double-clicking the remote Java application, as configured:
Click Debug to enter debug mode.
4. Verification
We hit any code in the source code project that needs to be debugged, set breakpoints like normal local debug, and then initiate a request for a project deployed by the server.
As shown, Success!!!
Click on the icon circled above (Disconnect) to disconnect the debug mode.
After disconnecting debug mode, you can turn on debug mode at any time, such as Operation:
Java Web Remote Debugging