title: How can I start Pry in Rails/Ruby automatically when any exception occurs, at the location of the raised exception
body: <p>How can I start Pry in Rails/Ruby automatically when any exception occurs, at the location of the raised exception?</p>
  
  <p>I have a hard to debug problem, that I can't seem to trace back to it's source, it occurs in Rails somewhere between a controller responding and a view being rendered. </p>
  
  <p>I figured if I somehow got a pry (pry gem) to open up before or after the stack trace is displayed in the console I might be able to see where the issue has occurred. Is it possible to get Pry to start up automatically when an error occurs?</p>
  
  <p>Or a debugger for that matter?</p>