idea远程调试tomcat中部署的项目
作者:互联网
- 在tomcat bin目录下放置setenv.bat批处理文件
文件内容为:
set CATALINA_OPTS="-agentlib:jdwp=transport=dt_socket,address=4001,server=y,suspend=n"
- idea配置
具体配置如下:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=4001
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4001
-Xnoagent -Djava.compiler=NONE -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4001
- 选择设置的启动项debug启动就行
标签:suspend,socket,tomcat,4001,idea,transport,address,dt,调试 来源: https://blog.csdn.net/weixin_42609712/article/details/100525489