4 ms·
In Rust debugging and stacktraces are perfectly fine because async/futures compile to a perfect state machine.
by iknowstuff 6mo ago
In Rust debugging and stacktraces are perfectly fine because async/futures compile to a perfect state machine.
- comex 6mo agoThey are not perfectly fine. If a task panics then you will get the right stack trace, but there is no way to get a stack trace for a task that’s currently waiting. (At least not without intrusive hacks.)
- tcfhgj 6mo agoWould this be considered an intrusive hack? https://docs.rs/tokio/latest/%20tokio/runtime/struct.Handle.html#method.dump https://docs.rs/tokio/latest/%20tokio/runtime/struct.Handle....