I would like to debug gradle’s source code. More specifically, I would like to debug before, during, and after CachingModuleComponentRepository is called.
Can anyone point me to the right direction on how to attach Gradle Source Code and debug it?
I tried running with gradle build -Dorg.gradle.debug=true as well as adding org.gradle.jvmargs="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 which worked to debug my build.gradle task.
What is the preferred approach? With that, how do you debug Gradle’s source code? Where do you attache sources within your gradle project.
I’m using gradle 4.3.1 and intellij
Thanks in advance!