stackjlei
stackjlei

Reputation: 10035

How do I exit binding.pry without exiting my rails server

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.

Upvotes: 3

Views: 3387

Answers (2)

AnnieP
AnnieP

Reputation: 370

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

!!!

Upvotes: 5

Hank Beaver
Hank Beaver

Reputation: 81

The method or command you are looking for is:

disable-pry

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

Upvotes: 8

Related Questions