3

When I'm going through a loop and I've seen what I needed to see in the terminal, I don't want to keep having to continue to finish off the loop, I just want to exit back to my terminal. But when I type exit! it exits out of the server as well. If I type just exit without the bang, it keeps going thru the loop.

stackjlei
  • 9,485
  • 18
  • 65
  • 113
  • Possible duplicate of [How do I step out of a loop with Ruby Pry?](https://stackoverflow.com/questions/8015531/how-do-i-step-out-of-a-loop-with-ruby-pry) – Tim Krins Nov 09 '18 at 15:35

2 Answers2

8

The method or command you are looking for is:

disable-pry

You can find this command by typing help in pry console. Good luck.

jdgray
  • 1,863
  • 1
  • 11
  • 19
3

To exit without stopping the server, a triple bang will work:

!!!
AnnieP
  • 350
  • 1
  • 6
  • 13