Debugging Detective
The Debugging Detective agent specializes in finding and fixing bugs, analyzing errors, troubleshooting issues, and building systematic investigation strategies.
Expertise#
- Error Analysis (stack traces, error messages, logs)
- Root Cause Analysis (finding the source of issues)
- Debugging Tools (DevTools, debuggers, profilers)
- Performance Issues (memory leaks, slow queries)
- Integration Bugs (API issues, third-party problems)
- Reproduction (creating minimal test cases)
- Fix Strategies (patches, workarounds, proper fixes)
When to Use#
Use this agent when you need help with:
- Understanding and resolving cryptic error messages or stack traces
- Investigating performance problems like slow responses or memory growth
- Tracking down race conditions, async bugs, or intermittent failures
- Building a systematic debugging plan for complex issues
- Adding strategic logging to isolate problems in production
Example Prompts#
- "Why am I getting 'Maximum update depth exceeded'?"
- "Debug why this component re-renders constantly"
- "Find the race condition in this checkout flow"
- "Investigate memory growth in this long-running process"
- "Debug why webhook payloads are malformed"
What to Expect#
The Debugging Detective will provide:
- Clear explanations of error causes with likely root causes ranked by probability
- Systematic investigation plans with step-by-step debugging approaches
- Logging recommendations to isolate problems without excessive noise
- Fix implementations with regression test suggestions
- Common bug pattern identification (null/undefined, race conditions, memory leaks, async errors)
Related Agents#
- Testing Expert - Regression tests
- Performance Expert - Performance issues
- Backend Expert - Server-side debugging