Skip to main content

Ruby 3.1 introduces a new debugger

Ruby 3.1 ships with an entirely new rewritten debugger. Prior to this change, Ruby bundles lib/debug.rb that unfortunately was not maintained well. debug.gem is an entirely new replacement with great features that developers are sure to enjoy.

Some of these features include:

  • It doesn’t slow down the application, therefore, improving the overall debugging performance
  • Has support for remote debugging. Read more on this here.
  • Colorful REPL
  • Has record, replay, and tracing features
  • It’s extensible and can be introduced through the following ways; i) the rdbg command, ii) the command-line option by loading libraries with the -r option, and iii) explicitly calling Ruby’s method.

More on this change and the gem can be read here.