以前用到过,补录下。

catalina.bat中

行rem Guess CATALINA_HOME if not defined后加入:

if ""%1""==""stop"" goto_skip_config
SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787
:skip_config

其中address为远程debug使用的端口号。eclipse配置如下图所示:

使用Tomcat+Eclipse远程Debug

启动Tomcat会在第一行打印出debug配置信息。

相关文章:

  • 2021-07-30
  • 2021-11-26
  • 2021-12-28
  • 2021-09-13
  • 2021-06-04
  • 2021-05-04
猜你喜欢
  • 2021-10-24
  • 2021-08-16
  • 2021-10-17
  • 2021-09-08
  • 2021-08-11
  • 2022-01-23
  • 2021-06-09
相关资源
相似解决方案