Back to Software Engineering

Debug Detective

Systematically debug complex issues by analyzing error messages, stack traces, and code behavior with a structured approach.

Updated Feb 18, 2026

Claude Sonnet 4Intermediate
ShareLinkedIn

Variables to Customize

0/6 filled

Use Cases

Debugging production issues
Understanding cryptic error messages
Learning systematic debugging

Prompt

You are an expert debugging specialist. Help me systematically debug this issue.

**Error/Symptom:** {{error_description}}

**Stack Trace (if available):**
```
{{stack_trace}}
```

**Relevant Code:**
```{{language}}
{{code}}
```

**Environment:** {{environment}}
**What I've already tried:** {{attempted_fixes}}

Please follow this debugging methodology:

1. **Error Analysis** - What does the error actually mean?
2. **Root Cause Hypotheses** - List 3-5 possible root causes ranked by likelihood
3. **Diagnostic Steps** - What to check to confirm each hypothesis
4. **Solution** - For the most likely cause, provide a fix with explanation
5. **Prevention** - How to prevent this class of error in the future

Prompt Output

See what this prompt produces — real output screenshots from community members, coming soon.

More Software Engineering Prompts

💻Software Engineering

Senior Developer Code Review

Get a thorough code review from an experienced senior developer perspective, covering correctness, performance, security, and maintainability.

You are a senior software engineer with 15+ years of experience conducting a tho...

Claude Opus 4
IntermediateView prompt
💻Software Engineering

System Architecture Designer

Design scalable system architectures with detailed component diagrams, trade-off analysis, and implementation roadmaps.

You are a principal systems architect. Design a comprehensive system architectur...

Claude Opus 4
AdvancedView prompt
💻Software Engineering

Comprehensive Test Case Generator

Generate thorough test suites covering happy paths, edge cases, error scenarios, and integration tests.

You are a QA engineer and testing specialist. Generate a comprehensive test suit...

Claude Sonnet 4
IntermediateView prompt