Need to stop a running script in mid-stride and check/change variables?
1. add Pry
2. add an Exception handler
rescue Exception => exception
Now just use Ctrl C (on a Mac, Unix and Linux) and you’ll exit out with a debugger command prompt.
And exit pry permanently with: