Summary
In this chapter, we learned about the different functions we can use to debug in PHP and the equivalent in Ruby, and how to debug our code by using three different tools that are easily configured and installed. While not wanting to impose my debugging gem of choice, I will say that for several years I used pry, until byebug came along. I suggest you not only try byebug but also be on the lookout for new debugging gems. We also learned how to add breakpoints to our debug code and how useful and powerful these breakpoints can be during development. Lastly, we learned that all of these gems are basically enhanced IRBs, so we can easily use any of them as they all behave in a very similar fashion.
Having seen all this, we are now ready to board the Ruby on Rails wagon.