Use Eclipse to remotely debug Web applications deployed in Tomcat

Source: Internet
Author: User
Today, my colleague told me how to remotely debug a Web application deployed in Tomcat using Eclipse:
  1. Install the decompressed version of Tomcat, because it seems that there is no catalina. sh (. bat) file in the Tomcat Windows installation directory;
  2. Modify the JPDA_ADDRESS port in catalina. sh (. bat). For example, by default, this configuration isJPDA_ADDRESS = "8000"Now, change it to the port we want to use. Here we will use 8000 by default;
  3. Start Tomcat, enter the $ {CATALINA_HOME}/bin directory in command line mode, and enterCatalina. sh (bat) jpda start
  4. Start Eclipse, select the class you want to Debug and set the breakpoint, and then select the Debug sub-menu in the Debug toolbar. In the pop-up Debug selection window, select remote debugging in the menu on the left, enter the machine name and port, such as localhost and 8000, and then Apply and start Debug;
  5. Open the browser and enter the page for debugging. The Debug window of Eclipse is activated, and Debug is now available.

 

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.