Work through an error message or stack trace systematically instead of guessing.
Use when you're stuck on an error and want a structured diagnosis rather than a single guessed fix.
I'm getting this error in a {language}/{framework} project:
```
{error_message}
```
Relevant code:
```
{code_context}
```
Walk through: (1) what this error means in plain language, (2) the most likely 2-3 root causes given the code context, ranked by likelihood, (3) how to confirm which one it actually is, and (4) a fix for the most likely cause. Don't just paste a fix without explaining the reasoning — I want to understand why it happened, not just make the error disappear.Include the actual code around the failure point, not just the error text — most debugging value comes from the model seeing what the code does right before the failure.
Language: Python/Django. Error: "IntegrityError: UNIQUE constraint failed: auth_user.email". Code: [user registration view]
1. This means you're trying to insert a row that violates a unique constraint on email...
Last updated Jan 1, 2026
Get thorough, categorized code review feedback on a diff or file.
Generate clear developer-facing documentation for an API endpoint from its code or spec.