Closed SdtElectronics closed 2 years ago
Does void skip_n_firsts(size_t)
on the StackTrace object help?
https://github.com/bombela/backward-cpp/blob/master/backward.hpp#L731
Does
void skip_n_firsts(size_t)
on the StackTrace object help?
This does exactly what I want. Thanks!
The sources of stack trace for the innermost frames are always the same (from libraries reading the debug info, libraries unwinding the stack and backward-cpp itself) which I don't care much. It would be nice if they can be dropped. I found
TraceResolver
allows specifying a specific frame, which can be leveraged to accomplish this, but I have to format the message asPrinter
refuses to acceptResolvedTrace
as argument:I wonder if there is a way to pretty print a truncated stack trace as simple as using
Stacktrace
withPrinter
?