Stack traces, human panic, and failure::Context are essentially runtime docs. They provide contextual information when something goes wrong. Output depends on what went wrong. Also you'll never want them ahead of time, but only when inspecting the program.
-
-
I'm suspecting there might be more cases like these around stdlib. For example locks is another I'm curious about. But just in general if we could log the source lines corresponding to the failure I think we could really make some leaps.
-
Ah tracking threads is possible. When you spawn threads you can name them, fwiw, and that shows up in the backtrace.
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.