ConradIrwin / pry-rescue

Start a pry session whenever something goes wrong.
MIT License
848 stars 49 forks source link

Continue command ? #94

Closed camilo1729 closed 8 years ago

camilo1729 commented 8 years ago

Hello,

Nice job with this gem.Is there a continue command? kind of the one that existed before in the pry-exception_explorer gem. For me try-again is not always an option and I would like just to continue the execution after managing interactively the exception.

Thank you

fl0at commented 8 years ago

I'm wondering about this too.

The peek (Ctrl-) option is really handy, but your program will always exit afterwards, since you can't merely try-again: Error: try-again only works in a pry session created by Pry::rescue{}

ConradIrwin commented 8 years ago

Unfortunately it's not possible to continue as the exception has already been raised and the stack unwound. Ditto with the peek option, your program has already stopped, we just keep track of the binding and play make-believe so that it looks like it's just paused.