3 ms·
C++ exceptions and Rust Anyhow errors lack stack traces by default, whereas Java exceptions capture them by default, aiding debugging. I'm not sure if Rust span
by nyanpasu64 4y ago
C++ exceptions and Rust Anyhow errors lack stack traces by default, whereas Java exceptions capture them by default, aiding debugging. I'm not sure if Rust spans satisfy the same requirements as stack traces; they seem more built around logging and asynchronous execution, than error handling and synchronous code.
- jamincan 4y agoI believe the backtrace API was added to stable rust with the most recent release, and so anyhow backtraces should now be available outside of nightly.