JuliaDebug / Debugger.jl

Julia debugger
MIT License
470 stars 43 forks source link

`@debug_last_error()`: interpret only frames from `Base.stacktrace()` #336

Open cstjean opened 1 year ago

cstjean commented 1 year ago

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...

pfitzseb commented 1 year ago

Similar idea to https://github.com/JuliaDebug/Infiltrator.jl/issues/99#issuecomment-1746937265. This seems pretty straightforward to implement, I think.