Debugging Ruby and Rails code inside Sonar plugin

How can I debug Rails and Ruby code (i.e. breakpoints, call stacks, etc.) that runs inside a separate JVM using the IDE (IntelliJ Idea)? What configuration is needed for this in Sonarqube and IntelliJ?
I did not find this information on the Sonarqube website or elsewhere.

+5
source share
2 answers

Take a look at http://docs.sonarqube.org/display/DEV/Extend+Web+Application . See Section Applications โ†’ Development Mode.

Hi

+4
source

Best to go with RubyMine: https://www.jetbrains.com/ruby/

This is the Intellij version for Ruby and Rails. He got great debugging tools. You can find more information on how to set breakpoints, etc. Here: https://www.jetbrains.com/ruby/features/ruby_debugger.html

RubyMine is gaining popularity, but most ruby โ€‹โ€‹developers just throw binding.pry at the point of their code that they want to debug. Pry is an extremely popular stone that offers excellent debugging tools. Here's more info on how to use this feature: https://github.com/pry/pry#runtime-invocation

+1
source

All Articles