Debugging Rules Pack
$12
https://schema.org/InStock
usd
Ned C
The Problem
You paste an error into Cursor and it immediately suggests a code change. No explanation. Often wrong. You end up playing whack-a-mole with bugs.
The Fix
Drop one .cursorrules file into your project root. Cursor starts debugging like a senior engineer β hypothesis first, then targeted fix.
What's Inside
π§ Debugging Mindset
- Reproduce first, one change at a time, never guess
- State hypothesis before proposing any fix
- Explain root cause, not just symptoms
π Error Analysis
- How to read stack traces and common error patterns decoded
- Systematic process: reproduce β isolate β diagnose β fix β prevent
π Logging
- Strategic placement and structured format
- What to log and what never to log
π Common Scenarios
- Async issues and race conditions
- React rendering bugs
- API/network failures
- Database query problems
- Environment and config mismatches
β‘ Performance
- Profile first, then optimize
- Common bottlenecks and optimization patterns
π« Anti-Patterns Blocked
- No shotgun fixes without understanding the bug
- No suppressing errors with try/catch
- No "it works on my machine" dismissals
- No fixing symptoms instead of root causes
What Changes
Before: Cursor sees an error and immediately proposes a code change. Often wrong. No explanation.
After: Cursor states its hypothesis, explains the root cause, proposes a targeted fix, and suggests a test to prevent regression.
Setup
- Download the .cursorrules file
- Drop it in your project root
- Done. Works with any language or framework.
What You Get
- .cursorrules file (works immediately)
- README.md with full documentation
- SETUP.md with installation guide
0 sales
.cursorrules file (works immediately) README.md with full documentation SETUP.md with installation guide
Size
6 KB
Add to wishlist