项目基于gradle ,今天想断点debug一下springboot,查阅资料后,纪录一下步骤。
创建Remote
创建gradle.properities
在当前项目下创建gradle.properities ,目的是添加jvm参数。写入内容
org.gradle.jvmargs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
阅读下面的链接, https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory
断点, debug项目,再启动第一步创建的Remote
参考资料
1.https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory