Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: pulled debugging content and referenced debugging page



Changes on Java code are not reloaded dynamically. You need to rebuild the plugin and to re-execute sonar-dev-maven-plugin.

Debug Java batch

Simply run mvnDebug sonar:sonar and attach your IDE to the remote process. Example in Intellij Idea: Run > Edit configurations > Add new configuration > Remote.

Debug a plugin

Here are the steps to debug a SonarQube plugin server side : 
  • Unzip a sonar distribution 
  • Edit the conf/wrapper.conf file and uncomment the line :,server=y,address=8000
  • Copy your plugin's jar file to extensions/plugins
  • Launch SonarQube with the standard command. The following line will appear in the log : Listening for transport dt_socket at address: 8000
  • Attach the IDE to the debug process on port 8000
  • Set breakpoints in the source code
  • Debug!


We've gathered all our debugging tips into this page.


How to Use External Libraries?

A plugin benefits from all the dependencies provided by the API. Execute the following command on your plugin to list them: