如何在IntelliJ IDEA中远程断点调试tomcat?以下是整理的步骤:
tomcat/bin目录新建setenv.bat或setenv.sh
添加如下内容:
#sh
JPDA_OPTS='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005'
#bat
set JPDA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
启动:
catalina.sh jpda run
catalina.bat jpda run
IntelliJ IDEA配置: