Debug
RubyMine provides a debugger for Ruby code, including the ERB and HAML files. Debugging Ruby 2.0+ projects requires the debase and ruby-debug-ide gems installed in the project SDK. If these gems are not installed, RubyMine will suggest doing this when you run debugging for the first time.
![Install gems for debugging Install gems for debugging](https://resources.jetbrains.com/help/img/idea/2021.2/rm_debugging_install_debase_warning.png)
General debugging procedure
(Optional) Configure the debugger settings in the
page.If necessary, create or modify an existing run/debug configuration.
Place breakpoints in your code.
During a debug session, examine the program state: see variable values, evaluate expressions, and so on. You can also use the Debug console to do this.
Last modified: 22 November 2021