Tuesday, 5 November 2013

Debugging Gradle

Always wanted to find out how does Gradle the thing it does? Is it driving you crazy not knowing why that script is not working?

Attach a remote debugger


TL;DR
  • Add a new system variable:
    GRADLE_OPTIONS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5006
  •  Start your Gradle task
  • Run your favourite IDE's debugger

No comments :

Post a Comment