Debugging Methodology Skill
Overview
This skill teaches systematic debugging methodologies using a 4-phase approach to identify and fix bugs.
Principles
- •Systematic Approach: Follow structured methodology
- •Reproduce First: Always reproduce the issue
- •Isolate the Cause: Narrow down the scope
- •Verify the Fix: Test thoroughly after fixing
Key Capabilities
1. 4-Phase Debugging
- •Phase 1: Reproduce
- •Phase 2: Isolate
- •Phase 3: Analyze
- •Phase 4: Fix
2. Debugging Tools
- •pdb (Python debugger)
- •ipdb (enhanced pdb)
- •Logging
- •Print debugging
3. Common Scenarios
- •NoneType errors
- •Index out of range
- •Key errors
- •Type errors
When to Use This Skill
Load this skill when:
- •Debugging failing functions
- •Investigating errors
- •Finding root causes
- •Analyzing stack traces
- •Implementing error handling
Sections
- •
4-phase-methodology.md: Reproduce, Isolate, Analyze, Fix - •
debugging-tools.md: pdb, ipdb, logging - •
common-scenarios.md: NoneType, IndexError, KeyError, TypeError - •
error-handling.md: Exception handling best practices