4
votes

So in Windows in the comand line I wrote

set GRADLE_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=y

Then I get:

C:\Project>gradle main
Listening for transport dt_socket at address: 9999

Then I put a breakpoint in the gradle.build file enter image description here

and at last from Eclipse IDE

enter image description here

And I get

enter image description here

why this happend? So I can't debug gradle files, I can only debug java,groovy.. files?

1

1 Answers

5
votes

It's a known limitation that Gradle build scripts can't currently be debugged in IDEs. I'm not aware of the specific error though. Usually the debugger just doesn't stop at the breakpoint (but it will stop at breakpoints for user-defined plugin/task classes and Gradle classes).