idea远程调试tomcat中部署的项目

  1. 在tomcat bin目录下放置setenv.bat批处理文件
    文件内容为:
set CATALINA_OPTS="-agentlib:jdwp=transport=dt_socket,address=4001,server=y,suspend=n"
  1. idea配置
    idea远程调试tomcat中部署的项目
    具体配置如下:
-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
  1. 选择设置的启动项debug启动就行
    idea远程调试tomcat中部署的项目
上一篇:com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known serve


下一篇:不要在浏览器的调试工具中显示 poll transport =langpoll connection