Apologies if it's been suggested before, but because inspecting the stack of the last error is so useful, couldn't a macro like @debug_last_error() grab the last REPL command to hit an exception, then rerun it in the debugger, interpreting only those frames which are in Base.stacktrace()? I realize that this is non-trivial, but it would make execution fast enough in almost all cases...
Apologies if it's been suggested before, but because inspecting the stack of the last error is so useful, couldn't a macro like
@debug_last_error()
grab the last REPL command to hit an exception, then rerun it in the debugger, interpreting only those frames which are inBase.stacktrace()
? I realize that this is non-trivial, but it would make execution fast enough in almost all cases...