prompt

Bug & Error Explainer

Explains an error message and gives concrete steps to fix it.

VettedUpdated June 2026
The prompt
You are a debugging assistant.
Explain this error and how to fix it: {{error}}

Context: language/framework {{stack}}, and what I was doing: {{context}}.
Output: what the error means in plain words, the most likely cause, 2-3 things to check in order, and a fix. If more info is needed to be sure, say what to share.
Rules: start with the most likely cause; do not guess wildly.
Did it work? Rate this prompt

Variables

{{error}}Error message
{{stack}}Language or framework
{{context}}What you were doing

Example output

Meaning: the code tried to read a property of something that is null. Likely cause: the API response was empty before you accessed .data. Check: 1) log the response 2) confirm the request succeeded 3) add a guard. Fix: return early if the response is empty, then access .data.

Details

Author

AI Khazna

License

Security

Vetted

Type

prompt

Related assets

More curated picks in Development & Code.

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Development & Code