Skip to content

Commit

Permalink
Added documentation for debugging gradle-dep-tree (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman committed Mar 14, 2024
1 parent 9f4dc78 commit 62be33a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,14 @@ On Windows run:
```
gradlew.bat clean check
```

# 🐞 Debug

To debug the gradle-dep-tree process, follow these steps:
1) Create a new debug configuration in your IDE. If you are using IntelliJ IDEA Choose "Remote JVM Debug" and ensure the following fields are correctly configured:
* Debugger Mode: Attach to remote JVM
* Host: localhost
* Post: 5005
* Use module classpath: <no module>
2) Run the Gradle command with following flags: `-Dorg.gradle.debug=true --no-daemon`
3) After executing the command with the flags, the process will pause. At this juncture, you can set a breakpoint and initiate the debug configuration in "Debug" mode.

0 comments on commit 62be33a

Please sign in to comment.