Loading...
Loading...
Compare original and translation side by side
systematic-debuggingsystematic-debugging| Phase | Purpose | Example Questions |
|---|---|---|
| 1. Symptoms | Establish the gap between expected and actual | "What did you expect to happen?" / "What actually happened instead?" |
| 2. Reproducibility | Determine if the bug is deterministic | "Can you reproduce this consistently?" / "What conditions trigger it?" |
| 3. Prior Attempts | Avoid retreading failed approaches | "What have you already tried?" / "What happened when you tried that?" |
| 4. Minimal Case | Reduce the search space | "Can you reproduce this with less code?" / "What is the smallest failing input?" |
| 5. Error Analysis | Extract signal from error output | "What does the error message tell you?" / "Which part of the message is most informative?" |
| 6. State Inspection | Ground the investigation in actual data | "What is the value of X right before the error?" / "What state do you see at that point?" |
| 7. Code Walkthrough | Surface hidden assumptions | "Can you explain what this function does, line by line?" / "What happens at this branch?" |
| 8. Assumption Audit | Challenge the user's mental model | "What are you assuming that you haven't verified?" / "Could that value ever be null here?" |
| 9. Hypothesis | Build the user's investigative instinct | "Where do you think the problem is?" / "Why there specifically?" |
| 阶段 | 目标 | 示例问题 |
|---|---|---|
| 1. 症状 | 明确预期结果与实际结果的差距 | “你预期会发生什么?” / “实际发生了什么?” |
| 2. 可复现性 | 确定bug是否具有确定性 | “你能稳定复现这个问题吗?” / “触发该问题的条件是什么?” |
| 3. 已尝试的方案 | 避免重复无效的方法 | “你已经尝试过哪些方法?” / “尝试后结果如何?” |
| 4. 最小化用例 | 缩小排查范围 | “你能用更少的代码复现这个问题吗?” / “能触发问题的最小输入是什么?” |
| 5. 错误分析 | 从错误输出中提取有效信息 | “错误信息告诉你什么?” / “错误信息中哪部分最有参考价值?” |
| 6. 状态检查 | 基于实际数据开展排查 | “错误发生前,X的值是什么?” / “此时你观察到的状态是什么?” |
| 7. 代码走查 | 发现隐藏的假设 | “你能逐行解释这个函数的作用吗?” / “这个分支会执行什么逻辑?” |
| 8. 假设验证 | 挑战用户的思维模型 | “你有哪些未验证的假设?” / “这个值在这里有可能为null吗?” |
| 9. 提出假设 | 培养用户的排查直觉 | “你认为问题出在哪里?” / “为什么你觉得是这里?” |
request.userIdrequest.userIdrequest.userIdrequest.userId"We have been exploring this for a while. Would you like to switch to direct debugging mode? I can investigate and solve this systematically instead of through questions."
systematic-debugging“我们已经探讨了一段时间。你是否愿意切换至直接调试模式?我可以通过系统化排查来解决问题,而非继续通过提问引导。”
systematic-debuggingsystematic-debuggingsystematic-debuggingreponse.datareponse.data| Rationalization | Why It's Wrong | Required Action |
|---|---|---|
| "The bug is obvious, I should just tell them" | Telling defeats the learning objective | Ask a pointed Phase 1 question instead |
| "They seem frustrated, I'll give a hint with the answer" | Leading questions are answers in disguise | Offer escalation to systematic-debugging |
| "We've covered symptoms already, skip to Phase 7" | User's description may have gaps or assumptions | Verify Phase 1-2 explicitly before advancing |
| "One more question won't hurt past 12" | Diminishing returns cause frustration | Offer escalation at the 12-question mark |
| 合理化解释 | 错误原因 | 要求操作 |
|---|---|---|
| “这个bug很明显,我应该直接告诉用户” | 直接给出答案会违背学习目标 | 改为提出一个针对性的第1阶段问题 |
| “用户看起来很沮丧,我可以给一个带答案的提示” | 诱导性问题是伪装的答案 | 提议升级至systematic-debugging模式 |
| “我们已经覆盖了症状,直接跳至第7阶段” | 用户的描述可能存在遗漏或假设 | 在推进前需明确验证第1至2阶段的内容 |
| “超过12个问题再提一个也没关系” | 边际效益递减会导致用户沮丧 | 在第12个提问时提供升级选项 |