RubyMine provides a debugger for Ruby code. Depending on the installed/enabled plugins, you can also debug code written in other languages, including the ERB and HAML files.
In order to install the debugging gems, RubyMine requires additional libraries:
macOS: Command Line Tools
Linux: The build-essential package
Using byebug or similar debugging gems in your project may affect the RubyMine debugger. We recommend disabling such gems to prevent slowdowns or unexpected behavior.
RubyMine's debugger works with debug version 1.6.2 and later. Note that this gem version requires Ruby MRI 2.6 and later.
General debugging procedure
(Optional) Configure the debugger settings in thepage.
If necessary, create or modify an existing run/debug configuration.
Place breakpoints in your code.