I'm a Rails and React enthusiast with over two year experience in web application development. I'm also an active member of technical communities in Kerala. Born and raised in Alappuzha, Kerala. In my free time I use to travelling and do open source contributions.
1 minute read
As we know,
debuggers are the main tools for programmers to debug the code easily.
With the latest changes in Rails 7,
byebug is replaced with ruby/debug.
Byebug has been helping Rails programmers debug their applications since 2014.
We can refer to that PR here.
Rails 7 comes with debug as its default debugger.
debug is Ruby’s new debugger
and
will be included in Ruby 3.1.
It is planned to be a standard library of Ruby 3.1.
Adding debug to Rails 7 will align Rails with Ruby.
Here is an example of debugging in both Byebug
and
Debug.
Debugging using byebug
Debugging using Ruby Debug,
For more details regarding commands
and
features of Ruby Debug,
please check this out
Ruby-Debug.