How to perform remote debugging in eclipse...

Source: Internet
Author: User

You only need to add some parameters to the Tomcat Startup File to start remote_debug in eclipse. The specific method is as follows:
In % tomcat_home % \ bin \ Catalina. add set catalina_opts =-server-xdebug-xnoagent-djava to the BAT file. compiler = none-xrunjdwp: Transport = dt_socket, Server = Y, suspend = N, address = 5888.
Open eclipse and select debug... from the eclipse run menu... add a remote_debug (remote debugging) in the tree menu on the left, and fill in the basic information. The information is: Debug name, project name, debug the host URL and port, and check before allow terminate of remote VM. the most important thing is the port information. This port information comes from the address item in the above string of parameters. You can set the address to any unused port.
Start Tomcat on the console. You can see information like "listening for transport dt_socket at address: 5888" on the console, indicating that the debug port has been listened on. Then open the previously configured debugging and enter a URL in IE or eclipse's built-in browser to run the WebProgramRemember to set a breakpoint before running the web program.
Now you can perform Web debugging in eclipse...

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.