Read This Stack Trace

A plain-language explanation of a stack trace and its most likely cause.

Beginner · Works with ChatGPT, Claude, Gemini, Copilot

The prompt

Explain this stack trace in plain language and tell me the most likely cause.

Distinguish what the trace proves for certain from what it only suggests, and note if there's a more likely explanation than the obvious top line.

Stack trace or error:
{{CODE}}

What you were doing when it happened:
{{STACK}}

Why this prompt works

Separating what the trace proves from what it merely suggests stops a plausible guess from being treated as a confirmed diagnosis.

How to customize it

  • Confirm the suggested cause with a quick log or breakpoint before fixing it.
  • Include the triggering action — the same error can have different root causes depending on context.

Common mistakes

  • Pasting only the last line of the trace, losing the call chain that narrows the cause.
  • Fixing the symptom at the top of the trace instead of the root cause deeper in it.

Example

Input

Stack trace or error: TypeError: Cannot read properties of undefined (reading 'id') at OrderService.js:42

What a good answer looks like

A plain-language explanation plus a most-likely cause and its confidence level.

Make this prompt fit your work

ModelCoach.ai scores your version, shows what to improve and explains why, right inside ChatGPT, Claude, Gemini and Copilot.

Related prompts