title: Is there any way to start the Ruby debugger on exception?
body: <p>Is there any way to start the/a Ruby debugger whenever the code throws an exception, without me wrapping the code like this:</p>
  
  <pre><code>begin
    #do something
  rescue
    debugger
  end
  </code></pre>
  
  <p>I'd like to have it in such a way that if the <code>do something</code> part raises an exception, the debugger will start. It would be nice not having to modify the code to add begin rescue blocks all over.</p>