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