Eclipse Remote Debugging (remote server-side monitoring)

Source: Internet
Author: User

Premise: The source code of the Web project that runs on the remote server must be consistent with the local project

That is, the project for remote Tomcat deployment is that the native project is packaged in the past, and the native project has not changed.

1, Configuration $tomcat_home/bin/catalina.sh

Add the following line

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

Description: Server=y refers to the remote debugger (commonly used) that the target application listens to to connect as a service.

Suspend=y means that the target VM will be paused until the debugger application is connected (useful if debugging startup errors are required);

Suspend=n means that the target VM is not paused;

address=9988 listening port.

2. Check the Tomcat console output to see that the configuration we just had is in effect and the output is as follows:

3. Configuring Eclipse

Select project, configure remote IP and remote port

Finish the call.

Eclipse Remote Debugging (remote server-side monitoring)

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.