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)