Original Blog Address: http://blog.csdn.net/dfdsggdgg/article/details/50730311
1.center, add the following statement to the first line of the startup.sh file
Declare-x catalina_opts= "-server-xdebug-xnoagent-djava.compiler=none-xrunjdwp:transport=dt_socket,server=y, suspend=n,address=8000 "(Do not wrap, to be on the same line)
Under Ubuntu, add the following statement to the first line of the catalina.sh file catalina_opts= "-xdebug-xrunjdwp:transport=dt_socket,address=8000,server=y, Suspend=n "(Do not wrap, to be on the same line)
2. Eclipse Click Run, then click Debug Configurations, configure the server IP and port number, and the project name
3. Finally, if the Enable Tomcat remote debugging configuration is unsuccessful, the connection will be rejected.
"Java" uses Eclipse for remote debugging, and Linux opens remote debugging