Home

Ruby Debugging

Useful Resources

tl;dr

Using binding.pry is incredibly useful for debugging Rails apps (spec tests as well).

  • When debugging spec tests, debug within an it block scope.

Once within the debugger:

  • You can access variables by typing in the variable name
  • Grep larger variable output for faster identification

Repository

https://github.com/okeeffed/developer-notes-nextjs/content/ruby/ruby-debugging

Sections


Related