talira

pry-byebug

Step-by-step debugging and stack navigation in Pry

open sourceMITfree

pry-byebug adds step-by-step debugging and call stack navigation to the Pry console using Byebug. You stop a Ruby program with binding.pry as usual, then use step, next, finish and continue to move through it, manage breakpoints with break, and walk the stack with backtrace, up, down and frame. It needs MRI 3.2 or later.

Problems it solves

  • step through my Ruby code line by line from a binding.pry breakpoint
  • add next and step commands to the Pry console
  • debug a failing Rails test interactively

Features

  • step, next, finish and continue inside Pry
  • breakpoint management
  • call stack navigation with backtrace, up, down and frame

Alternatives

The same job

These do what pry-byebug does.

  1. debug (Ruby) Ruby's standard debugger, with remote debugging and VS Code and Chrome DevTools frontends
  2. Byebug A simple to use, feature-rich debugger for Ruby
  3. Pry A runtime developer console and IRB alternative for Ruby

Compare pry-byebug with the top 3