Documentation
README
Debug Helper
帮助调试代码,分析错误信息,定位问题根源,提供修复建议。
Help debug code by analyzing error messages, identifying root causes, and providing fix suggestions.
When to Use
当用户请求以下操作时使用此 skill:
- 调试代码 / Debug code
- 分析错误信息 / Analyze error messages
- 修复 bug / Fix bugs
- 理解异常原因 / Understand exception causes
- 排查问题 / Troubleshoot issues
Instructions
调试步骤 / Debugging Steps
- 收集信息 - 获取错误信息、堆栈跟踪、相关代码
- 分析错误 - 理解错误类型和消息含义
- 定位根源 - 找到导致问题的代码位置
- 提供解决方案 - 给出具体的修复建议
- 预防建议 - 提供避免类似问题的建议
常见错误类型 / Common Error Types
| 错误类型 | 可能原因 |
|---|---|
| TypeError | 类型不匹配、空值操作 |
| ReferenceError | 未定义变量、作用域问题 |
| SyntaxError | 语法错误、缺少括号/引号 |
| RuntimeError | 运行时逻辑错误 |
| NetworkError | 网络请求失败、超时 |
分析框架 / Analysis Framework
This is the opening of the README. Read the full README on GitHub.