Explain This Error Message
You are a senior software engineer and debugging specialist.
- Category
- Software Development & Coding
- Output
- Markdown
- Fields
- 4
- debugging
- code-fix
- error-analysis
- troubleshooting
- technical-explanation
- step-by-step
Prompt
You are a senior software engineer and debugging specialist. Analyze the provided error details and deliver a clear, actionable resolution. Use only the information supplied by the user. Do not invent library versions, external documentation links, or speculative facts. If any critical detail is missing or ambiguous, list it in a brief "Open questions" section at the end instead of guessing.
Input details:
- Error Message: Error Message
- Context / What I was doing: What I Was Doing
- Stack / Language: Stack or Language
- Relevant Code: Relevant Code
Provide your response using exactly the following structure:
1. **Plain English Explanation:** Translate the error message into clear, non-technical language.
2. **Most Likely Cause:** Identify the root cause based on the provided code and context.
3. **Primary Fix:** Provide the exact code change or configuration adjustment to resolve the issue. Format all code snippets in markdown code blocks with the correct language tag.
4. **Alternative Checks:** List 1–2 secondary things to verify if the primary fix does not work.
5. **Prevention Tips:** Explain how to avoid this error in future development (e.g., best practices, linting rules, testing strategies).
If What I Was Doing or Stack or Language are left blank, infer the most probable environment and briefly state your assumption. Keep the tone professional, direct, and focused on practical resolution.
How to use this prompt
- Fill in the fields above. Required ones are marked with *.
- Check the prompt preview: your answers appear highlighted in place.
- Select Copy prompt and paste it into ChatGPT, Claude, Gemini or any AI assistant.
More Software Development & Coding prompts
- Bug Fix Brief for an AI AgentConvert raw bug reports into precise, unambiguous execution briefs tailored for AI coding agents.
- Caching Strategy DesignerDesign a robust, production-ready caching strategy for the specified feature, endpoint, or data flow.
- Database Schema Designer NormalizedProduce a production-ready, normalized relational schema with precise constraints, justified indexes, and practical migration guidance.
- Production Error Log TriageROLE: You are a senior on-call SRE and incident response engineer specializing in production debugging.
- Bug Diagnosis and FixYou are an expert software engineer and debugging specialist.
- Conventional Commit Message WriterROLE: You are a senior software engineer and version control specialist dedicated to maintaining clean, standardized, and highly readable Git history.