Debugger.jl
Debugger.jl copied to clipboard
`@debug_last_error()`: interpret only frames from `Base.stacktrace()`
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...
Similar idea to https://github.com/JuliaDebug/Infiltrator.jl/issues/99#issuecomment-1746937265. This seems pretty straightforward to implement, I think.