Tomcat

复制一份startup.bat,更名为“startup-debug”。

替换内容如下:

call "%EXECUTABLE%" start %CMD_LINE_ARGS%

替换为

set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=8000
set JPDA_SUSPEND=y
call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%

执行“startup-debug.bat”,即可开启远程调试。

参考:http://blog.sina.com.cn/s/blog_6e2d53050101j9wy.html

原文地址:https://www.cnblogs.com/kangping/p/8268862.html