How to debug a Gradle build.gradle file (in a debugger, with breakpoints)?

后端 未结 5 855
攒了一身酷
攒了一身酷 2020-12-12 13:01

Is there a tool that will allow me to set breakpoints in a build.gradle file and step through tasks in a debugger?

Note: I believe that I\'m asking a different ques

5条回答
  •  一整个雨季
    2020-12-12 13:31

    IntelliJ 2018.2 added the ability to debug Gradle scripts in a similar fashion to how you might run/debug other projects. You can see the announcement in the release notes here.

    Here is a screenshot of some of the documentation from 2018.2:

    It does not yet support the kotlin-dsl (see gradle/kotlin-dsl/issues/39).

提交回复
热议问题