A simple to use, feature-rich debugger for Ruby
open sourceBSD-2-Clausefree
Byebug is a debugger for Ruby built as a C extension on Ruby's TracePoint API for execution control and its Debug Inspector API for navigating the call stack, so it doesn't depend on Ruby's internal sources. It steps through a program line by line, pauses at breakpoints and events, evaluates code in a basic REPL and tracks variables and executed lines, from a command line interface that front-ends can build on. It needs MRI 3.3 or later, is BSD-2-Clause licensed, and is offered to enterprises through the Tidelift Subscription.
Problems it solves
- pause my Ruby program and inspect variables at a breakpoint
- step through a failing Rails test line by line
- debug Ruby code from the terminal
Features
- step through Ruby code line by line
- breakpoints on lines and events
- basic REPL to evaluate code while paused
- track variables and executed lines
- C extension on TracePoint and Debug Inspector APIs
Limitations
- Needs MRI 3.3.0 or later1
Alternatives
The same job
These do what Byebug does.
- debug (Ruby) Ruby's standard debugger, with remote debugging and VS Code and Chrome DevTools frontends
- pry-byebug Step-by-step debugging and stack navigation in Pry
- Pry A runtime developer console and IRB alternative for Ruby
- Python Debugger Python debugging with debugpy for Visual Studio Code
- GDB The GNU Project debugger.
- GDB dashboard Modular visual interface for GDB in Python
