Customize number of stacktraces in REPL

Hello, I find the number of stacktraces in REPL are a bit overwhelming with my screen get flushed out and my REPL becomes a mess to scroll through history. Most of the time I only need to inspect the the deepest 5 or 10 stacktraces on first inspection, call Debugger or when needed I would call Base.show_backtrace manually.

My question is how do I limit number of stacktraces in REPL to customizable number say 5 or 10?

Thank you for the help.

1 Like

Something may be in the works (at least it has been debated extensively):

https://github.com/JuliaLang/julia/issues/33065