-
-
Notifications
You must be signed in to change notification settings - Fork 134
Description
I saw that there are some upcoming formatting improvements (yay) especially for symbol shortening, and I wanted to give some attention to per-frame formatting.
Most of the time, I don't want to filter out a whole frame in a third-party library, but I don't want to print its source code either, and often even the line number in some libc++ header isn't useful.
As a request, I'd love to being able to visit each stack frame and determine whether to use color, show snippets, and include fine-grained source location, rather than for the entire formatted stacktrace output.
Example of what I'm thinking, where only some frames are highlighted:
I made the above using a transform that does frame.line.reset() and inserts ESC[0m into filename and symbol. Just applying this hack using a regex for common trampolines and thunks (e.g. libstdc++ __invoke_r) already makes for a massive quality of life improvement.
