Eclipse Tomcat Debug Debugging

Source: Internet
Author: User
Tags tomcat

Reprint: Http://www.blogjava.net/zJun/archive/2006/04/21/42386.aspx

In fact, the most effective way to solve this problem is to install Plug-ins: simple, direct. But if you do not want to install too many plugins into eclipse or if the Tomcat and eclipse you are debugging are not on the same machine, you will need to debug directly using Eclipse's remote debug with the following configuration steps:

1. Set up Tomcat's operating environment:
Open Startup.bat file, find line call "%executable%" Start%cmd_line_args%

Before adding the following settings: Set catalina_opts =-server-xdebug-xnoagent-djava.compiler = None-xrunjdwp:transport = dt_socket, server = y, suspend = n, address = XXXX

or directly modify the Catalina.bat file as follows: Set JPDA = JPDA
Set jpda_transport = Dt_socket
Set jpda_address = XXXX

Where xxxx is a custom-not-conflicting port number.

2. Set remote Debug for eclipse:
Open the Debug Settings window in Eclipse, select Remote Java application, create a new debug entry, enter the server IP and just set the port number, click OK to enter the debug state.


3.usage. Request process does not finished.

1 U can set watch variable.

2) Click (Ctrl +shift +i), show param value.

Related Article

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.