I want to make a secondary development base on sonarqube7.7 source code , but I can not debug the souce code in IDEA, anyone knows how to config that? Thanks a lot!
Sorry for the very late reply.
The best way is to start SonarQube with debugger enabled in the JVM. Add to the sonar.properties one of the following, depending if you want to debug the code in Compute Engine or Web server:
sonar.web.javaAdditionalOpts=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006
sonar.ce.javaAdditionalOpts=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006
Then run in IDEA a “Remote” type of debugger and connect to localhost, port 5006.
Hope this helps.
Thanks for your reply, I have searched by google, find the same way.
Hello, now I have a same question, and I already add the sonar.ce
and the sonar.web
property in sonarqube server, but when I run the sonar plugin via mvn
I still not capture my breakpoint, How should I do?And my sonarqube server version is 8.9.10, sonar-maven-plugin version is 3.7.0.1746