Show all frames and their local variables on assert failures [WIP] #134
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.
gdb
, just to see what's possible.This is a separate implementation but the same idea as #135. I initially tried the other approach, ran into issues, pivoted to this solution, and once it was done I realized how I could achieve my original idea.
This implementation is cleaner but also less useful: instead of providing you with coredumps it will only show similar stack info on the terminal. It is more flexible for customization though: right now it only prints the frame name + local variables but you can show whatever you want.
This PR will show you stack information when an assertion failure is triggered. An example output: