Hi,
I’m trying to debug custom plugin rules on the SonarQube local server created from the sonarqube:9.9-community image. I have an issue that I can’t connect to the remote JVM. I tried with native IDE Remote JVM Debug run configuration and with jdb. I’m sure that port is open on docker container. I receive following errors:
IDE and jdb: java.net.SocketException: Broken pipe (Write failed)
SonarQube server log: Debugger failed to attach: handshake failed - connection prematurally closed
I added property to SonarQube properties:
sonar.web.javaAdditionalOpts=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005
Platform: Mac
IDE: IntelliJ
Java Version: openjdk64-11.0.22
Has anyone facing the same issue and can share his solution?
Happy coding,
TS