Eclipse remote Debugging Linux under Tomcat project __linux

Source: Internet
Author: User

Under Tomcat bin start.sh the first line of non-annotation code adds Declare-x catalina_opts= "-xdebug-xrunjdwp:transport=dt_socket,server=y,suspend=n, address=8000 "code

Then paste the Project war package into the WebApps

Run SH start.sh under bin to start Tomcat

Go to native Eclipse Select item Right-click to locate the Debug as under Headset menu debug configurations, locate the remote Java application in the Open dialog box, right-click New

In order: Select the item, fill in the remote IP address, and just configure the 8000 port apply last debug

The error prompt is successful, and then the Debug Watch Window opens (choose Show View Selection from the Eclipse Window menu, Debug opens)

The top can display the remote project name in debugging and the IP address port

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.