Looking at the way human-panic handles backtrace, I feel like it would be better to suggest to stop printing unnecessary frames we get from backtrace as it has own calls, and instead jump straight to user code. This is how I made for my lazy panic handlers when backtrace is on https://github.com/DoumanAsh/lazy-panic.rs/blob/master/src/formatter.rs#L189-L202
Expected Behavior
Prints stacktrace from user code
Current Behavior
Prints stacktrace from human-panic and its dependency backtrace
Possible Solution
Calculate where user code's panic starts and start printing from this point (Not sure if it is platform dependent number, but both windows and linux had the same stack trace in my experiments)
Context
I just feel it would improve usability for reports with backtrace
Looking at the way
human-panichandles backtrace, I feel like it would be better to suggest to stop printing unnecessary frames we get frombacktraceas it has own calls, and instead jump straight to user code. This is how I made for my lazy panic handlers when backtrace is on https://github.com/DoumanAsh/lazy-panic.rs/blob/master/src/formatter.rs#L189-L202Expected Behavior
Prints stacktrace from user code
Current Behavior
Prints stacktrace from
human-panicand its dependencybacktracePossible Solution
Calculate where user code's panic starts and start printing from this point (Not sure if it is platform dependent number, but both windows and linux had the same stack trace in my experiments)
Context
I just feel it would improve usability for reports with backtrace