Is there any way to start the/a Ruby debugger whenever the code throws an exception, without me wrapping the code like this:
begin #do something rescue d
require 'ruby-debug' class Exception alias original_initalize initialize def initialize(*args) original_initalize(*args) debugger end end
This will run the original exception as well as call debugger