debug-troubleshoot
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDebug and Troubleshoot
调试与故障排查
Systematic debugging approach for Rust async code with Tokio, Turso, and redb.
使用Tokio、Turso和redb对Rust异步代码进行系统化调试的方法。
Quick Reference
快速参考
- Logging - Tracing and log configuration
- Tokio Console - Async task debugging
- Common Issues - Common problems and fixes
- Techniques - Debugging techniques
- 日志记录 - 追踪与日志配置
- Tokio Console - 异步任务调试
- 常见问题 - 常见问题与修复方案
- 调试技巧 - 调试技巧
When to Use
适用场景
- Diagnosing runtime issues
- Performance problems
- Async deadlocks
- Database connection issues
- Panics and crashes
- 诊断运行时问题
- 性能问题排查
- 异步死锁
- 数据库连接问题
- 程序崩溃(panic)与宕机
Debugging Tools
调试工具
- Logging - tracing with RUST_LOG levels
- Tokio Console - Async task inspection
- Backtraces - Panic analysis
- Metrics - Performance profiling
See logging.md for tracing setup and issues.md for common problems.
- 日志记录 - 结合RUST_LOG级别的tracing工具
- Tokio Console - 异步任务检查
- 回溯(Backtraces) - 程序崩溃分析
- 指标监控 - 性能分析
查看 logging.md 获取追踪设置方法,查看 issues.md 获取常见问题解决方案。