A Faster Way to Exit Pry Session

Prem Sichanugrist
Sikachu's Blog
Published in
1 min readJun 1, 2018

--

If you are using Pry in your project, you might run into situation where you are in a loop or having multiple binding.pry and so you have to use exit multiple times to get out from it.

So, instead of usingexit multiple times, you can use exit-program to continue the execution without breaking into Pry again.

There is also a handy shortcut for this, which is !!!.

You can read more about exit-program and other way to navigate around in your Pry session in Pry’s wiki page.

--

--

Senior Developer at Degica. I also contribute to open source projects, mostly in Ruby.