-
Notifications
You must be signed in to change notification settings - Fork 63
Debugging the Plugin
wyy912 edited this page May 11, 2018
·
2 revisions
You can run the plugin in the debugger, but it takes some setup.
-
Execute this at the root of your project:
GRADLE_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5006" ./gradlew test --no-daemon
-
Point a remote debugger to port 5006. In Intellij set up 'Remote' Debug configuration and set the port (actual port can be changed)
-
In IntelliJ, to break at breakpoints inside of our plugin or other Gradle code you will need to put the appropriate JARs on your classpath, and then attach the source. It's a bit of a hack but it is possible in IntelliJ, anyway :).