IDEA 远程 Debug Tomcat

IDEA Tomcat Debug About 461 words

Tomcat

Tomcat的启动参数中添加如下参数后重启。

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005

备注:注册成Windows服务的Tomcat可以在注册表如下路径中添加参数(或者Tomcatbin目录下的tomcat9w.exe编辑)。以Tomcat9为例,在Parameters - Java下。

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\Tomcat9\Parameters\Java

IDEA

Edit Configurations - 点击左上角加号 - 选择Remote JVM Debug - 点击OK

视频讲解

https://www.bilibili.com/video/BV1WB4y1B7n3

https://www.ixigua.com/i7132489839949447710

Views: 2,965 · Posted: 2021-07-25

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh