Stage 01 · Write · Researched comparison
Best Ruby Debuggers in 2026
The debug gem, which ships with Ruby 3.1 and later and runs as rdbg, is the first pick for most teams because it is the standard library debugger and works with any editor. Pry with pry-byebug suits developers who want a REPL-style console. RubyMine is the strongest choice if you already pay for a JetBrains IDE and want a full graphical debugger.
By Shihab Mia
Published 27 Nov 2026 · 7 tools compared
We run no ads and no affiliate links at launch. The order of a list follows our published method. See how we score.
Prices are the starting prices vendors list publicly. Plans change, so confirm the current price on the vendor page before you buy.
Key takeaways
- The debug gem is maintained by the Ruby core team and is bundled with Ruby 3.1 and newer, so it costs nothing extra.
- Pry and Byebug are separate gems; Pry needs pry-byebug to step through code, and Byebug is in maintenance mode.
- Graphical debuggers in RubyMine and the VS Code rdbg extension drive the same debug gem protocol.
- Debuggers run your code locally, so source and variables stay on your machine, unlike online formatters and encoders.
Who each pick is for
- Most Ruby projects on Ruby 3.1 or newerdebug (rdbg)
- Developers who prefer a REPL-style debugging consolePry with pry-byebug
- Legacy projects already using Byebug in their codeByebug
- Teams already using the RubyMine IDERubyMine debugger
- VS Code users who want a graphical front end for rdbgVS Code rdbg extension
- Rails developers who want an in-browser console per requestweb-console
- Quick inspection without adding a debugger gemIRB
Comparison
| Tool | Best for | Standout feature | Listed starting price | Free plan or trial |
|---|---|---|---|---|
| 1debug (rdbg) | Most Ruby projects on Ruby 3.1 or newer | Bundled with Ruby 3.1 and later | Free (open source) | Free plan |
| 2Pry with pry-byebug | Developers who prefer a REPL-style debugging console | Powerful REPL with source browsing and object inspection | Free (open source) | Free plan |
| 3Byebug | Legacy projects already using Byebug in their code | Simple command set familiar to long-time Ruby developers | Free (open source) | Free plan |
| 4RubyMine debugger | Teams already using the RubyMine IDE | Full graphical debugger with breakpoints, watches and inline values | See vendor pricing page | Free trial (30 days) |
| 5VS Code rdbg extension | VS Code users who want a graphical front end for rdbg | Free graphical debugger inside a free editor | Free (open source) | Free plan |
| 6web-console | Rails developers who want an in-browser console per request | Opens a console in the browser on error pages and via a helper | Free (open source) | Free plan |
| 7IRB | Quick inspection without adding a debugger gem | Ships with Ruby | Free (open source) | Free plan |
How we picked
We picked tools that genuinely debug Ruby code, not general-purpose consoles or linters. Criteria were fit for the job, supported Ruby versions and platforms, licence and price, whether debugging stays local, and known limits such as maintenance status or editor lock-in. Sources are vendor pages, official documentation and project repositories. Prices and plan terms change, so confirm details on the vendor site before you commit.
The tools, one by one
debug (rdbg)
Best for most Ruby projects on Ruby 3.1 or newer

What it is and where it fits
The debug gem is the official debugger maintained by the Ruby core team. It provides the rdbg command and a `binding.break` method you can drop into code to pause execution. You get breakpoints, step in/over/out, call stack inspection, variable evaluation and thread control from a terminal session.
It supports remote debugging over a socket, which lets an editor attach to a running process. The VS Code rdbg extension and several other editors speak its protocol. Because it ships with Ruby 3.1 and newer, most projects need no Gemfile change. On older Rubies you add the gem yourself.
The main limit is that rdbg is terminal-first. Developers who want a visual interface should pair it with an editor extension or use an IDE. It is the right default for anyone on a current Ruby who wants a maintained, dependency-light debugger.
Standout: Bundled with Ruby 3.1 and later
Free (open source), as listed by the vendor (debug (rdbg) website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Bundled with Ruby 3.1 and later
- works with any editor or terminal
Drawbacks
- Command-line interface has a learning curve
- older Ruby needs the gem added manually
Skip it if this limit matters to you: command-line interface has a learning curve.
Verdict. A sensible pick for most Ruby projects on Ruby 3.1 or newer.
Alternatives in this guide: Pry with pry-byebug, Byebug, RubyMine debugger
Pry with pry-byebug
Best for developers who prefer a REPL-style debugging console

What it is and where it fits
Pry replaces IRB with a richer console. You add `binding.pry` where you want to pause, and Pry opens an interactive session at that point. You can inspect objects, browse method source, change state and run code. The pry-byebug plugin adds step, next, continue and breakpoint commands so it behaves like a conventional debugger.
Pry is a separate gem, so you add it to the development group of your Gemfile. It works on all current Ruby versions and on any platform that runs Ruby. The plugin ecosystem includes tools for Rails console integration and remote sessions.
The main trade-off is setup and compatibility. Step debugging requires pry-byebug, and some gems that patch IRB can clash with Pry. Teams that want zero extra dependencies are better served by the built-in debug gem.
Standout: Powerful REPL with source browsing and object inspection
Free (open source), as listed by the vendor (Pry with pry-byebug website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Powerful REPL with source browsing and object inspection
- large ecosystem of plugins
Drawbacks
- Needs pry-byebug for step debugging
- can conflict with other gems that patch IRB
Skip it if this limit matters to you: needs pry-byebug for step debugging.
Verdict. A sensible pick for developers who prefer a REPL-style debugging console.
Alternatives in this guide: debug (rdbg), Byebug, RubyMine debugger
Byebug
Best for legacy projects already using Byebug in their code

What it is and where it fits
Byebug is a classic command-line debugger for Ruby 2.4 and later. You add `byebug` to your code to start a session, then use commands like step, next, break, continue and var to inspect state. It has been a common choice in Rails projects for years and many older codebases still call it.
The project is in maintenance mode. It receives compatibility fixes but no new features, and it does not speak the debug gem protocol that modern editor extensions use. That means no graphical front end and no remote attach from VS Code or similar tools.
Byebug still works and is simple to learn. New projects should start with the debug gem instead. Keep Byebug only where existing code and habits depend on it, and plan a migration when you next touch those files.
Standout: Simple command set familiar to long-time Ruby developers
Free (open source), as listed by the vendor (Byebug website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Simple command set familiar to long-time Ruby developers
- small dependency footprint
Drawbacks
- In maintenance mode with no new features
- does not integrate with modern editor protocols
Skip it if this limit matters to you: in maintenance mode with no new features.
Verdict. A sensible pick for legacy projects already using Byebug in their code.
Alternatives in this guide: debug (rdbg), Pry with pry-byebug, RubyMine debugger
RubyMine debugger
Best for teams already using the RubyMine IDE

What it is and where it fits
RubyMine is JetBrains' commercial Ruby and Rails IDE. Its debugger gives you a graphical interface: clickable breakpoints, a variables pane, watches, evaluate expression, and stepping controls. It can attach to a running process and debug Rails apps, RSpec tests and rake tasks. Under the hood it works with the debug gem and its own integrations.
It runs on Windows, macOS and Linux. Licensing is a paid subscription with a free trial; check the vendor pricing page for current terms because plans change. There is no permanent free tier for the full IDE.
The debugger is the main reason many Ruby developers choose RubyMine. If you already pay for the IDE, the debugger is included. If you only need breakpoints and stepping, the free debug gem with a lightweight editor covers most of the same ground.
Standout: Full graphical debugger with breakpoints, watches and inline values
See vendor pricing page, as listed by the vendor (RubyMine debugger website). Confirm the current plan price before you buy.
Free trial (30 days). Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Full graphical debugger with breakpoints, watches and inline values
- integrated with the rest of the IDE
Drawbacks
- Paid subscription
- heavier than a terminal debugger
Skip it if this limit matters to you: paid subscription.
Verdict. A sensible pick for teams already using the RubyMine IDE.
Alternatives in this guide: debug (rdbg), Pry with pry-byebug, Byebug
VS Code rdbg extension
Best for vS Code users who want a graphical front end for rdbg

What it is and where it fits
The rdbg extension for Visual Studio Code connects the editor to the debug gem. You get breakpoints, step controls, a call stack view, variable inspection and an integrated debug console. It supports launching a script or attaching to a running process, including remote sessions over a socket.
It runs wherever VS Code runs: Windows, macOS and Linux. The extension is free and open source. Your project needs the debug gem available, which is automatic on Ruby 3.1 and newer. Configuration lives in a launch.json file.
Setup takes a little more work than a bundled IDE debugger, and the feature set is narrower than RubyMine's. For developers already working in VS Code, it adds a capable visual debugger without a subscription.
Standout: Free graphical debugger inside a free editor
Free (open source), as listed by the vendor (VS Code rdbg extension website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Free graphical debugger inside a free editor
- uses the standard debug gem protocol
Drawbacks
- Requires the debug gem and some configuration
- fewer features than a full IDE
Skip it if this limit matters to you: requires the debug gem and some configuration.
Verdict. A sensible pick for VS Code users who want a graphical front end for rdbg.
Alternatives in this guide: debug (rdbg), Pry with pry-byebug, Byebug
web-console
Best for rails developers who want an in-browser console per request

What it is and where it fits
web-console is a Rails gem that adds an interactive console to your application. On an error page in development you get a console for that request, and you can call the `console` helper in a view or controller to open one on demand. You can inspect variables, run queries and check state at the point where the page rendered.
It is limited to Rails and to development environments by default. It is not a step debugger: you cannot set breakpoints and walk through code line by line. Think of it as a request-scoped REPL that complements a real debugger.
Because it runs inside your own app on localhost, data stays on your machine. Do not expose it in production. It is a good first tool for Rails developers who want to inspect state quickly without leaving the browser.
Standout: Opens a console in the browser on error pages and via a helper
Free (open source), as listed by the vendor (web-console website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Opens a console in the browser on error pages and via a helper
- no editor setup
Drawbacks
- Rails only
- not a full step debugger
Skip it if this limit matters to you: rails only.
Verdict. A sensible pick for rails developers who want an in-browser console per request.
Alternatives in this guide: debug (rdbg), Pry with pry-byebug, Byebug
IRB
Best for quick inspection without adding a debugger gem

What it is and where it fits
IRB is Ruby's built-in interactive console, and recent versions include debugging commands. You can start a session, set breakpoints with the break command, step through code and inspect bindings. The `binding.irb` method drops you into a console at any point in your code.
It is bundled with Ruby, so there is nothing to install. It runs on every platform Ruby supports. For small scripts and quick checks, IRB is often enough and avoids adding gems to a project.
The limits are real: the debugging commands are newer and less documented than rdbg's, and there is no editor integration. Use IRB for quick inspection and reach for the debug gem when you need reliable breakpoints across a larger codebase.
Standout: Ships with Ruby
Free (open source), as listed by the vendor (IRB website). Confirm the current plan price before you buy.
Free plan. Plans change, so confirm on the vendor's pricing page before you buy.
Benefits
- Ships with Ruby
- supports breakpoints and stepping in recent versions
Drawbacks
- Less feature-rich than dedicated debuggers
- console workflow only
Skip it if this limit matters to you: less feature-rich than dedicated debuggers.
Verdict. A sensible pick for quick inspection without adding a debugger gem.
Alternatives in this guide: debug (rdbg), Pry with pry-byebug, Byebug
Who should use what
If you are on Ruby 3.1 or newer and want a maintained debugger with no extra dependencies, start with the debug gem and rdbg. If you like a REPL workflow and want to browse source while paused, use Pry with pry-byebug. If your team already pays for RubyMine, its graphical debugger is the natural choice. VS Code users should add the rdbg extension. Rails developers who want to inspect a request in the browser can use web-console alongside any of these.
Questions to settle before you buy
What to check before you buy
- Confirm your Ruby version; the debug gem is bundled from 3.1 onward and needs adding on older versions.
- Check that your editor or IDE supports the debug gem protocol if you want a graphical interface.
- Add debugger gems to the development group only, never to production dependencies.
- Verify remote debugging settings and bind addresses before attaching over a network.
- Keep consoles and debug endpoints out of production and out of shared environments.
FAQ
Is the debug gem free?
Yes. The debug gem is open source and maintained by the Ruby core team. It is bundled with Ruby 3.1 and later, so there is no separate cost. On older Ruby versions you add it to your Gemfile like any other gem.
Do I still need Byebug?
Only if an existing project already uses it. Byebug is in maintenance mode and does not support modern editor protocols. New projects should use the debug gem, which is actively maintained and works with graphical front ends.
Can I debug Ruby in VS Code?
Yes. The rdbg extension connects VS Code to the debug gem and provides breakpoints, stepping, a call stack and variable inspection. You need the debug gem available in your project, which is automatic on Ruby 3.1 and newer.
Is web-console a replacement for a debugger?
No. web-console gives you a console per request inside a Rails app. It cannot set breakpoints or step through code. Use it for quick inspection and pair it with the debug gem or Pry for real step debugging.
Are these debuggers safe for production data?
Debuggers run locally and keep code and variables on your machine, which is safer than pasting data into third-party web tools. Still, never enable debug consoles or remote debugging in production, and avoid loading real customer data into development sessions where possible.
Sources we checked
Method: how we score · editorial policy.
Change log. First published 27 Nov 2026.