IDEA Jetty远程调试问题。我想调试 webapps 文件夹中的 war 文件

IDEA Jetty remote debug problem. I wanna debug the war files in webapps folder

我成功连接到远程jvm服务器,但我只能调试start.jar。 我在 webapps 文件夹中提取了 war 文件,断点没有用。 如何调试网页代码? 顺便说一句,没有 maven。

创建一个文件${jetty.base}/modules/remote-debug.mod,其中包含远程调试所需的变体(端口或挂起的不同配置?)...

[exec]
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9999

然后,当您需要调试时,只需将命令行 --module=remote-debug 添加到您的 start.jar 执行中,远程调试将仅用于该执行。

那么您只需在 IDE 中针对相同的配置启动远程调试会话即可。