Watch 4 Star 15 Fork 9

CDK8S / tkey-docs

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
TKey 统一了文档,方便阅读、维护 spread retract

Clone or download
remote-debug.md 654 Bytes
Copy Edit Web IDE Raw Blame History
cdk8s-zelda authored 2019-08-27 20:31 . init

配置 IntelliJ IDEA 远程 Debug

debug 配置

  • 复制这个 VM 配置
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

调整应用启动参数

  • 在 应用的原有 JAVA_OPTS 参数基础上补加,效果如下:
JAVA_OPTS="-Xms512m -Xmx2048m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"

启动本地项目

debug 启动

  • 然后在项目代码中打断点,跟平时本地 debug 一样

debug 住断点效果

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/cdk8s/tkey-docs.git
git@gitee.com:cdk8s/tkey-docs.git
cdk8s
tkey-docs
tkey-docs
master

Help Search