What is the best way to debug gradle plugins?

New to gradle and this forum.

What is the best way to debug the groovy/java code in the plugin class (ex: class TestPlugin implements Plugin)
I have been using prinln - but wondering if there is a better way to debug it line by line ?

You can remote debug your Gradle build as described here:

Make sure to also use the option --no-daemon.

1 Like

I’m new to Gradle plugins too, and Java. But How to debug Gradle Plugins with IntelliJ helped.

1 Like