Loading...
Loading...
Compare original and translation side by side
"Don't guess. Form hypotheses. Test them."
"不要猜测。提出假设。验证假设。"
- [ ] **Reproduced**: Can trigger bug consistently
- [ ] **Isolated**: Know which component is failing
- [ ] **Root Cause**: Understand WHY it fails
- [ ] **Fixed**: Minimal change addresses cause
- [ ] **Tested**: Regression test added
- [ ] **Clean**: Debug code removed- [ ] **已复现**: 可稳定触发bug
- [ ] **已定位**: 明确故障组件
- [ ] **已找到根因**: 理解故障原因
- [ ] **已修复**: 最小化变更解决根因
- [ ] **已测试**: 添加回归测试
- [ ] **已清理**: 移除调试代码**Hypothesis**: [What you think is wrong]
**Test**: [How you'll verify]
**Result**: [What happened]
**Conclusion**: [Confirmed/Rejected/Needs more info]**假设**: [你认为存在的问题]
**测试方法**: [你将如何验证]
**结果**: [实际发生的情况]
**结论**: [已确认/已推翻/需要更多信息]| Symptom | Often Caused By |
|---|---|
| Works locally, fails in CI | Environment differences, missing deps |
| Intermittent failure | Race condition, timing, external dependency |
| Wrong output | Logic error, wrong variable, off-by-one |
| Crash/exception | Null/None access, type mismatch, missing data |
| Performance issue | N+1 queries, missing index, memory leak |
| 症状 | 常见原因 |
|---|---|
| 本地正常,CI环境失败 | 环境差异、依赖缺失 |
| 间歇性故障 | 竞态条件、时序问题、外部依赖 |
| 输出错误 | 逻辑错误、变量误用、差一错误 |
| 崩溃/异常 | 空值/None访问、类型不匹配、数据缺失 |
| 性能问题 | N+1查询、索引缺失、内存泄漏 |
| Excuse | Reality |
|---|---|
| "I'll just add a quick fix" | Quick fixes hide root cause. Follow Phase 1 first. |
| "It's probably X" | "Probably" isn't evidence. Test the hypothesis. |
| "This is too simple to debug formally" | Simple bugs waste the most time when undiagnosed. |
| "I've tried 3 things, might as well try a 4th" | STOP. Return to Phase 1. Re-analyze with new info. |
| "It works now, not sure why" | If you don't know why it works, it will break again. |
| 借口 | 实际情况 |
|---|---|
| "我先快速修复一下" | 快速修复会掩盖根因。先执行阶段1。 |
| "可能是X的问题" | "可能"不是证据。请验证假设。 |
| "这个太简单了,不用正式调试" | 简单bug在未诊断时会浪费最多时间。 |
| "我已经试了3种方法,不如再试第4种" | 停止。回到阶段1,结合新信息重新分析。 |
| "现在能用了,不知道为什么" | 如果你不知道原因,它还会再次故障。 |
undefinedundefined| Hypothesis | Test | Result |
|---|---|---|
| [theory] | [what I tried] | ✅ Confirmed / ❌ Rejected |
| 假设 | 测试方法 | 结果 |
|---|---|---|
| [理论] | [我尝试的操作] | ✅ 已确认 / ❌ 已推翻 |
path/to/file.pypath/to/file.pytest_nametest_nameundefinedundefined