Last updated 5 years ago
Was this helpful?
复制这个 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 一样