项目基于gradle ,今天想断点debug一下springboot,查阅资料后,纪录一下步骤。

创建Remote

SpringBoot 开启debug

创建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

相关文章:

  • 2022-12-23
  • 2021-09-07
  • 2021-03-28
  • 2022-01-13
  • 2021-09-23
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-01
  • 2021-08-09
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2021-09-01
相关资源
相似解决方案