Debugging Skill
[TEST-PLUGIN-SKILL: debugging]
When to Use This Skill
Use this skill when:
- •User reports an error or exception
- •Code produces unexpected output
- •Tests are failing
- •Performance issues need investigation
Systematic Debugging Process
- •
Reproduce the Issue
- •Get exact error message
- •Identify minimal reproduction steps
- •
Gather Information
- •Check stack trace
- •Review recent changes
- •Check logs
- •
Form Hypothesis
- •What could cause this behavior?
- •What assumptions might be wrong?
- •
Test Hypothesis
- •Add logging/print statements
- •Use debugger breakpoints
- •Write minimal test case
- •
Fix and Verify
- •Make minimal change
- •Run tests
- •Confirm fix doesn't break other things