debugging
Installation
Summary
Systematically isolate and fix code issues using structured debugging methodologies.
- Covers six-step debugging workflow: information gathering, reproduction, isolation, root cause analysis, fix implementation, and verification
- Includes common bug patterns (off-by-one, null references, race conditions, memory leaks, type mismatches) with targeted solutions
- Provides debugging techniques: binary search isolation, print/log debugging, divide-and-conquer code elimination, and regression test patterns
- Supports multiple languages with tool recommendations (pdb/cProfile for Python, Chrome DevTools for JavaScript, Delve for Go, etc.)
SKILL.md
Debugging
When to use this skill
- Encountering runtime errors or exceptions
- Code produces unexpected output or behavior
- Performance degradation or memory issues
- Intermittent or hard-to-reproduce bugs
- Understanding unfamiliar error messages
- Post-incident analysis and prevention
Instructions
Step 1: Gather Information
Collect all relevant context about the issue: