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:

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