Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Debugging a plugin server-side

  1. Copy your plugin's jar file to extensions/plugins
  2. Edit SONAR_HOME/conf/wrapper.
  3. conf and
  4. conf and uncomment the line : wrapper.java.additional.3=-agentlib:jdwp=transport=dt_socket,server=y,address=8000
  5. Launch SonarQube normally. The following line will appear in the log : Listening for transport dt_socket at address: 8000
  6. Attach the IDE to the debug process on port 8000,
  7. set
  8. set breakpoints in the source, and
  9. debug
  10. debug!