# debug (Ruby)

> Ruby's standard debugger, with remote debugging and VS Code and Chrome DevTools frontends

Source: https://talira.ai/catalog/debug-ruby-trcxymvh
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / debugging](https://talira.ai/categories/developer-tools/debugging), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Licence: BSD-2-Clause[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Ruby core team](https://talira.ai/orgs/ruby-core-team.md)

debug.rb is the debugger for Ruby (MRI) 2.7 and later, replacing the old lib/debug.rb standard library. It has no performance penalty outside stepping and breakpoints, supports remote debugging over a UNIX domain socket or TCP/IP, and works from its console, VS Code (with the vscode-rdbg extension) or Chrome DevTools. It isn't the JavaScript [debug](https://talira.ai/catalog/debug-8wzmtey5.md) logging library.

## Links

- GitHub: https://github.com/ruby/debug

## Problems it solves

- set breakpoints and step through a Ruby program
- debug a Ruby app running in a container or on another machine
- debug Ruby code from VS Code or Chrome DevTools

## Features

- no performance penalty outside stepping mode and breakpoints
- remote debugging over a UNIX domain socket or TCP/IP
- frontends: its console, VS Code via vscode-rdbg, and Chrome DevTools
- rdbg command, -r loading, or binding.break in your code
- recording and replay debugging
- break into the debug console with Ctrl-C

## Limitations

- Ruby 2.7 or later only; the debug gem below 1.0.0 is an older, unrelated gem.[^1]

## Trust

Overall: 0.38 out of 1.
Signals: maintenance 0.27, adoption 0.62, momentum 0.36, community 0.80, backing 0.30, extensibility 0.00.

- latest release v1.11.0 17 months ago
- 1.3k GitHub stars
- 101 contributors
- backed by Ruby core team

Warnings:

- last commit 5 months ago

## Alternatives

- [Byebug](https://talira.ai/catalog/byebug-srfzwxyk.md): A simple to use, feature-rich debugger for Ruby
- [pry-byebug](https://talira.ai/catalog/pry-byebug-yvcngsp7.md): Step-by-step debugging and stack navigation in Pry
- [js-debug](https://talira.ai/catalog/js-debug-49z3e5z5.md): Microsoft's JavaScript debugger for Node.js and browsers, built into VS Code and available as a DAP server
- [GDB](https://talira.ai/catalog/gdb-drb2ej9v.md): The GNU Project debugger.
- [Pry](https://talira.ai/catalog/pry-ghgb9dkd.md): A runtime developer console and IRB alternative for Ruby
- [Debugger for Java](https://talira.ai/catalog/debugger-for-java-zw5av9ys.md): Microsoft's Java debugger for VS Code

## Sources

[^1]: https://github.com/ruby/debug/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/ruby/debug/blob/master/LICENSE.txt (checked 29 Nov 2026)
