Skip to content

Debugging the Plugin

wyy912 edited this page May 11, 2018 · 2 revisions

Debugging

You can run the plugin in the debugger, but it takes some setup.

  1. 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
    
  2. Point a remote debugger to port 5006. In Intellij set up 'Remote' Debug configuration and set the port (actual port can be changed)

  3. 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 :).

Clone this wiki locally