溯源纠错
原名:debugging-and-error-recovery
指导系统性根因调试。当测试失败、构建中断、行为与预期不符或遇到意外错误时使用。适用于需要系统方法而非猜测来定位和修复根因的场景。
- 分类
- 开发提效
- 版本
- v1.0.0
- 作者
- 林砚(@userjed0ww)
- 下载
- 2
- 收藏
- 0
- 发布
- 2026-08-08
- 更新
- 2026-08-13
- TRACE 评分
- 4.2 / 5
内容概览
Systematic debugging with structured triage. When something breaks, stop adding features, preserve evidence, and follow a structured process to find and fix the root cause. Guessing wastes time. The triage checklist works for test failures, build errors, runtime bugs, and production incidents. - Tests fail after a code change - The build breaks - Runtime behavior doesn't match expectations - A bug report arrives - An error appears in logs or console - Something worked before and stopped working When anything unexpected happens: Don't push past a failing test or broken build to work on the next feature. Errors compound. A bug in Step 3 that goes unfixed makes Steps 4-6 wrong. Work through these steps in order. Do not skip steps. Make the failure happen reliably. If you can't reproduce it, you can't fix it with confidence. When a bug is non-reproducible: For test failures (npm shown — subs…