Reference: http://blog.csdn.net/sunyujia/article/details/2614614
https://www.cnblogs.com/Vince-blogs/p/7497011.html
When it is difficult to locate the cause of a bug based on the log in the project, we need to remotely debug the test or production code. Now let's talk about how to make eclipse debug and track remote programs locally.
Add this line to the top of start.sh of tomcat's bin:
Configure remote debug in eclipse
Click the debug icon in the eclipse navigation bar - click Debug Configuration - right click Remote Java Application - New - select the project, Standard (Socket Attach), enter the remote host IP, port,
Finally click the Debug button
Reference: http://blog.csdn.net/sunyujia/article/details/2614614
https://www.cnblogs.com/Vince-blogs/p/7497011.html
When it is difficult to locate the cause of a bug based on the log in the project, we need to remotely debug the test or production code. Now let's talk about how to make eclipse debug and track remote programs locally.
Add this line to the top of start.sh of tomcat's bin:
Configure remote debug in eclipse
Click the debug icon in the eclipse navigation bar - click Debug Configuration - right click Remote Java Application - New - select the project, Standard (Socket Attach), enter the remote host IP, port,
Finally click the Debug button