Introduce a new 'colored' Backtrace format #64
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows customizing the printed backtrace format, and separates backtrace formatting (platform agnostic) and printing (platform specific).
The current format is now called
full
and I made a new one calledcolored
(I'm not quite happy with the name, I'm open to suggestions) with colors and a newline between the function name and file. It's easier on the eyes when reading on a small integrated terminal. It also removes the top 4 stack entries that are mostly irrelevant (since they belong to either Backtrace or libc / Windows CRT).This has been tested and works fine on both Linux and Windows.