Narrow down an error step by step
Instead of guessed fixes: hypotheses, checks and only then a minimal change.
- Type
- Prompt
- Level
- Intermediate
- Time
- about 10 min
Results depend on the tool, the model and what you enter.
Result preview
Example: written by our editors, not real AI output.
Most likely causes: 1. Some records have no “email” field (likely). Check: count records without “email” with a query. 2. The field was renamed … Minimal change: user.get("email") instead of user["email"], plus a test with the field missing.
Fill in
What you type stays in this browser window. We store and send nothing.
- Python 3.12 + FastAPI
- Node.js 22 + Express
- TypeScript + React
- PHP 8.3 + Laravel
- Java 21 + Spring Boot
- The endpoint returns the user list as JSON
- The form saves the data and shows a confirmation
- The page loads in under two seconds
- The script processes every row of the CSV file
- After login the user lands on the dashboard
- 500 Internal Server Error, in the log: KeyError 'email'
- TypeError: Cannot read properties of undefined
- The button does nothing, no error in the console
- Works locally, fails after deployment
- The test stops with a timeout after 30 seconds
Your prompt
I get an error in [Language/framework]. Expected: [Expected] Actual: [Error] Relevant code: [Code] Approach: 1. Name the three most likely causes, ordered by likelihood. 2. Give one concrete check for each cause (log output, test or command). 3. Only then propose a minimal change and explain why it fixes the error. Do not change anything unrelated to the error.
Matching tools
Tools from our catalog that this prompt works well with.
- ChatGPT Prices and limits
- Claude Prices and limits
- Cursor Prices and limits
How to use it
- Remove credentials, tokens and customer data from code and logs.
- Copy the prompt into a chat tool or your code editor's chat.
- Run the checks and report the results back before you accept the fix.
- Write a test that reproduces the error and passes after the fix.
Works in these tools
Prompts work in many chat and generator tools. This selection comes from our catalog; prices as shown on the tool page.
- ChatGPT Free planfrom 8 USD per month
- Claude Free plan
- Cursor Free planfrom 8 USD per month
- GitHub Copilot Free planfrom $10
- Windsurf Free plan
Why does this work?
Asking straight for a solution often yields a plausible but wrong change. Hypotheses plus checks separate guesswork from evidence.
Tips
- Include the full stack trace, not just the last line.
- With agents in the editor, run the analysis without write access first, then approve the fix.