设置环境变量

unix,linux
      export GRADLE_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n”
windows   
      set GRADLE_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n”

启动服务

gradle task --no-daemon -Dorg.gradle.debug=true 

 

使用eclispe的远程调试进行调试 Debug Configurations -> Remote Java Application

gradle使用eclipse debug 代码

相关文章:

  • 2021-08-20
  • 2021-06-09
  • 2021-12-08
  • 2021-06-15
  • 2021-10-13
  • 2021-12-18
  • 2021-08-17
猜你喜欢
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2021-07-17
  • 2022-01-22
  • 2022-12-23
  • 2021-10-06
相关资源
相似解决方案