Skip to content

backtraces are hard to read #66652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
heycam opened this issue Nov 22, 2019 · 1 comment
Closed

backtraces are hard to read #66652

heycam opened this issue Nov 22, 2019 · 1 comment

Comments

@heycam
Copy link
Contributor

heycam commented Nov 22, 2019

I find Rust backtraces hard to read at a glance. I think it's because many irrelevant (to me) stack frames are shown -- I'm getting 11 frames at the top relating to panicking and backtrace printing, and at the bottom there are 8 relating to panic catching and other initialization. The frames I really want to look at are somewhere in the middle, but I have trouble scanning the output to find them.

Two potential ideas for improving the readability:

  1. Omit the panic / backtrace / initialization frames by default, and only show them when RUST_BACKTRACE=full is used.
  2. Color code the output so that the panic / backtrace / initialization frames are de-emphasized.
@jonas-schievink
Copy link
Contributor

Duplicate of #58554

@jonas-schievink jonas-schievink marked this as a duplicate of #58554 Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants