Java Web Remote Debugging

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.