tomcate-tomcate8+eclipse+linux configure remote debugging

First, the operations required by tomcat under linux

     1. Add the following configuration to the catalina.sh file in the bin directory

           JPDA_TRANSPORT=dt_socket

           JPDA_ADDRESS=5006

           JPAD_SUSPEND=n

    legend:


 (figure 1)

 

      2. Use when starting tomcate: ./catalina.sh jpda start

 

Second, eclipse configuration

     1. Add configuration in eclipse

           Open a file, right-click and let the image operate as follows:

 (figure 1)


 (figure 2)


 (image 3)


 (Figure 4)

   

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326056171&siteId=291194637