Ask A Question


You’re not receiving notifications from this thread.

Better Debugging With The Ruby Debug Gem Discussion

Thanks Kylo Ren!


Nice video, Collin!

One thing I might add is how to get into a debug console when you're running the default bin/dev script. I spin up another console and run "bundle exec rdbg -a" to attach to the debug process. Is there any easier way to get all the goodness of the debug gem in way that integrates into the bin/dev foreman setup?


That's a great tip!

VS Code also has an extension you can use

The other option is to replace foreman with overmind which allows you to do the same thing by opening another terminal and running overmind connect web to connect to the process. This will work with binding.irb, pry & debug or anything else.

Here's my bin/dev

#!/usr/bin/env sh

export PORT

if command -v overmind > /dev/null 2>&1; then
  exec overmind start -f "$@"
  exec foreman start -f "$@"

Awesome...thanks, Chris! And yah, I feel like I'm swimming upstream by running Sublime instead of VSCode, but old dogs and new tricks, eh?


hey mate just type in binding.break - you don't need to stuff around with getting into the IRB and THEN debugging from there.


Hey there, I appreciate the comment. I do address this in the video though in addition to being able to use debugger instead of / in addition to binding.break.


Thanks, definitely learned new things!


Awesome! Glad to hear that Giedrius!

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 78,890+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2023 GoRails, LLC. All rights reserved.