How to find where error happen

⚓ Rust    📅 2026-03-09    👤 surdeus    👁️ 1      

surdeus

when i use anyhow and thiserror, It's easy to use ? to get the right value and retrun error,but when error accutally happened,It's difficult to locate the root cause.Is there any easy way to do that.I found that is a little bit uncomfortable to use backtrace feature and root_cause() function,because it also cannot tell me which line the error occures.

4 posts - 3 participants

Read full topic

🏷️ Rust_feed