I'm stuck inside of a pry session.
There was a long list of text which I had to scroll through and now I can't seem to escape.
I have tried ctrl + c
and ctrl + v
and esc
and enter
. Nothing seems to work.
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 using exit multiple times, you can use exit-program to continue the execution without breaking into Pry again.
If you're in regular old Pry you can use exit to go to the next binding. pry or disable-pry to exit Pry entirely. There's also pry-byebug to combine these two libraries.
To fix this just move the binding. pry command one line to the top and try to run your file again. If it still doesn't catch it, move the binding. pry command one more line to the top and keep doing this until your file catches the binding.
Try 'q', the binding for less. But it may depends on which default pager you use.
For me, it seems pry had bugged out, and after trying @kik's suggestion,
I resorted to:
exit
and hitting enter, thenrails c
to get back into the console.Nothing else I could find seemed to work
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With