How do I step out of a loop with Ruby Pry? How do I step out of a loop with Ruby Pry? ruby ruby

How do I step out of a loop with Ruby Pry?


To exit Pry unconditionally, type

exit-program

Edit from @Nick's comment: Also works:

!!!


I use:

disable-pry

This will keep the program running, but will keep it from continuing to stop execution. This is especially helpful when you are debugging in the console.


To exit everything, use:

exit!

This should ignore all proceeding bindings.