Text & chat prompt

Debug an error message step by step

Debug an error message step by step: a free, copy-paste prompt for ChatGPT, Gemini and Claude. Paste the prompt and replace each [BRACKETED] field with your own details.

The prompt

I get this error:

[PASTE ERROR OR STACK TRACE]

Language and framework: [LANGUAGE AND VERSION]
The code that triggers it:

[PASTE CODE]

What I already tried: [ATTEMPTS]

Explain what the error means in plain English, list the three most likely causes in order, show how to test each quickly and provide the corrected code for the most likely fix.

Pro tip: Include the exact error text and the smallest code snippet that reproduces it.

How to use this prompt

  1. Open ChatGPT and start a new chat.
  2. Paste the prompt.
  3. Replace each [BRACKETED] field with your real details and paste in your own text where asked.
  4. Reply with follow-ups such as "make it shorter" or "make it sound more like me".

Prompt at a glance

Category
Text & chat
Works with
ChatGPT · Gemini · Claude
Length
59 words
Fields to fill in
PASTE ERROR OR STACK TRACE, LANGUAGE AND VERSION, PASTE CODE, ATTEMPTS
Last updated

Frequently asked questions

Which AI tools work with this prompt?

It is written for ChatGPT, Gemini and Claude. Paste it into your preferred tool and adjust the wording if the result is off.

What do I need to fill in?

Replace these fields before you send it: PASTE ERROR OR STACK TRACE, LANGUAGE AND VERSION, PASTE CODE, ATTEMPTS. Each field shows an example in the prompt.

Should I paste private information into the prompt?

Only what the task needs. Remove names, contact details and other sensitive data before pasting a resume or document into any AI tool.

More chat & writing prompts

See all 373 chat & writing prompts →