Web project out of Eclipse deploying and configuring Eclipse debugging in Tomcat

Source: Internet
Author: User

In a nutshell, putting a Web project into a war package and putting it into the WebApps directory to start Tomcat is successful, but because it is not associated with Eclipse, debug code cannot be debugged. In this case, the following code is configured in the Tomcat catalina.sh script:

java_opts= "$JAVA _opts $JSSE _opts -xdebug-xrunjdwp:transport=dt_socket,address=10096,server=y,suspend=n"

This allows Tomcat to provide a connection to the external Port 10096, in Eclipse, into the debug configrations, connect the port can be debug debugging, but remember, The source code in eclipse must be consistent with the war that was deployed to Tomcat

Web project out of Eclipse deploying and configuring Eclipse debugging in Tomcat

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.