Remote gradle debugging in build.gradle file from Eclipse IDE

So, on Windows, on the command line, I wrote

set GRADLE_OPTS = -Xdebug -Xrunjdwp: transport = transport on sockets, address = 9999, server = y, pause = y

Then I get:

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

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

and finally from the Eclipse IDE

enter image description here

And I get

enter image description here

why did this happen? So I can not debug gradle files, I can only debug java, groovy .. files?

+4
source share
1 answer

It is known that Gradle build scripts cannot be debugged in the IDE. However, I do not know the specific error. Typically, the debugger simply does not stop at a breakpoint (but it will stop at breakpoints for custom plugin / task classes and Gradle classes).

+5
source

Source: https://habr.com/ru/post/1490356/


All Articles