RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Getting Started with Pry Debug in 5 minutes

When you’re banging your head against the wall trying to fix a bug, the last thing you want is having to stop and learn how to use the debugging tool.

The last time this happened, you added require ‘pry’ on a ruby file but quickly realized you didn’t know the available commands. What’s that noise? Oh, it’s the sound of more frustration being added to your day!

If only there was a way for you to quickly learn how to use Pry… Well, there is now! If you always wanted to improve your debugging skills but couldn’t find the time or guidance to do it on your own, this post is for you.

By the end of this guide, you’ll be able to use Pry effectively. Say goodbye to hours of googling and manually creating instances of objects to be able to debug. Say hi to your new debugging skills with Pry😎. Let’s go!

This is based on Justin Gordon’s Rails Conf 2021 riveting talk Implicit to Explicit: Decoding Ruby’s Magical Syntax.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in