Loading...
Loading...
Compare original and translation side by side
git bisectgit bisect| Symptom | First Action | Common Pitfall |
|---|---|---|
| Crash/exception | Start at the first stack frame in your code; capture request/trace ID | Fixing the last error, not the first cause |
| Wrong output | Create a “known good vs bad” diff; isolate the first divergent state | Debugging from UI backward without narrowing inputs |
| Intermittent/flaky | Re-run with tracing enabled; correlate by IDs; classify flake type | Adding sleeps without proving a race |
| Slow/timeout | Identify the bottleneck (CPU/memory/DB/network); profile before changing code | “Optimizing” without a baseline measurement |
| Production-only | Compare configs/data volume/feature flags; use safe observability | Debugging interactively in prod without a plan |
| Distributed issue | Use end-to-end trace; follow a single request across services | Searching logs without correlation IDs |
| 故障表现 | 首要操作 | 常见误区 |
|---|---|---|
| 崩溃/异常 | 从代码中的第一个堆栈帧入手;捕获请求/追踪ID | 只修复最后一个错误,而非根本原因 |
| 输出结果错误 | 生成“已知正确 vs 错误”的差异对比;定位第一个分歧状态 | 从UI反向调试而不缩小输入范围 |
| 间歇性/不稳定故障 | 开启追踪后重新运行;通过ID关联;分类故障类型 | 未证明竞态条件就添加延时 |
| 缓慢/超时 | 定位瓶颈(CPU/内存/数据库/网络);修改代码前先做性能剖析 | 无基准测量就盲目“优化” |
| 仅生产环境出现 | 对比配置/数据量/功能开关;使用安全的可观测性工具 | 无计划地在生产环境交互式调试 |
| 分布式系统问题 | 使用端到端追踪;跟随单个请求跨服务流转 | 无关联ID就盲目搜索日志 |
| Need | Read/Use | Location |
|---|---|---|
| Step-by-step RCA workflow | Operational patterns | |
| Debugging approaches | Methodologies | |
| What/when to log | Logging guide | |
| Safe prod debugging | Production patterns | |
| Copy-paste checklist | Debugging checklist | |
| One-page triage | Debugging worksheet | |
| Incident response | Incident template | |
| Logging setup examples | Logging template | |
| Curated external links | Sources list | |
| 需求 | 参考/使用 | 位置 |
|---|---|---|
| 分步根因分析工作流 | 运营模式 | |
| 调试方法 | 方法论 | |
| 日志记录的内容与时机 | 日志指南 | |
| 安全的生产环境调试 | 生产模式 | |
| 可复制的检查清单 | 调试检查清单 | |
| 单页故障分类表 | 调试工作表 | |
| 事件响应 | 事件模板 | |
| 日志配置示例 | 日志模板 | |
| 精选外部链接 | 资源列表 | |
../qa-observability/SKILL.md../qa-refactoring/SKILL.md../qa-testing-strategy/SKILL.md../data-sql-optimization/SKILL.md../ops-devops-platform/SKILL.md../dev-api-design/SKILL.md../qa-observability/SKILL.md../qa-refactoring/SKILL.md../qa-testing-strategy/SKILL.md../data-sql-optimization/SKILL.md../ops-devops-platform/SKILL.md../dev-api-design/SKILL.md