Windows + MyEclipse debugging Linux + Tomcat's Java Web Service configuration method

Source: Internet
Author: User
Tags java web

I. Linux tomcat configuration and startup
1.catalina.sh First line Join
Declare-x catalina_opts= "-xdebug-xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"

2. Start Jpda (This is the boot mode under Tomcat, the other servers may be different.) But the truth is the same)
./catalina.sh JPDA Start

3. Start the Web service
./start.sh


Two. In the Windows side of the MyEclipse in accordance with the configuration of Ip,port, etc.,
Then select source in the diagram and select the code folder you want to debug. Join
The debug in the point diagram will then be able to start the remote debugging.

Add:

Three. Technical terminology

The Java Platform Debugger Architecture (Jpda:java Platform Debug architecture) consists of a Java Virtual machine backend and a debug platform front-end
1.Java virtual machines provide Java debugging capabilities
2. The debug platform requests services from the Java Virtual machine by debugging the interactive protocol to debug the programs executed in the virtual machine
By default, JPDA is not started

Four. Check if the JPDA debug port8000 is being used by another process:
Netstat-an | grep "8000" can be


Suppose prompt:
Note:waiting for the process-to-end and use of the-force option require-$CATALINA _pid is defined
This is due to the absence of a catalina.sh after the

Finally, the JSP itself is not able to debug, you have to debug. Try to write Java code to a. java file in a polygon

Windows + MyEclipse debugging Linux + Tomcat's Java Web Service configuration method

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.