Learn how to debug your app using byebug.

We'll cover the following

Byebug debugger

No chapter on testing would be complete without some mention of how to debug our application when it is not behaving as we would expect. Imagine there is a problem with our welcome_controller.rb.

Let’s use the byebug debugger that is included as standard with a Rails app. Let’s add a byebug breakpoint to our welcome_controller.rb:

Get hands-on with 1200+ tech skills courses.