Lesson 1079 of 1455
Asking ChatGPT to Decode a Stack Trace
Pasting a confusing stack trace into ChatGPT or Claude turns wall-of-red into a plain-English map of where your code broke.
Builders · AI-Assisted Coding · ~24 min read
The big idea
A stack trace is a list of function calls that led to a crash. The names are short, the file paths are long, and the line that actually broke is buried. Pasting the whole thing into an AI chat with one line of context gets you a translation in seconds.
Some examples
- You paste a Python KeyError trace into Claude and ask 'what does this mean in plain English?' — it points at the dict access on line 42.
- You drop a Node.js promise rejection into ChatGPT and it spots that you forgot to await a fetch call.
- You feed a React 'Cannot read properties of the missing detail' trace to Cursor chat and it traces it back to a missing prop.
- You ask Copilot Chat to rank the trace by 'most likely culprit first' instead of reading top-down.
Try it!
Next time your code crashes, copy the full error and paste it into an AI chat with the prompt 'explain this trace and tell me which line to look at first.' Compare its guess to where the bug actually was.
End-of-lesson quiz
Check what stuck
8 questions · Score saves to your progress.
Lesson help
Questions are best handled with a grown-up here.
For this age range, Tendril keeps freeform AI chat paused until parent/guardian consent and child-safe moderation are fully verified. Use the quiz, notes, and related lessons below, or ask a parent, guardian, teacher, or librarian to work through the question with you.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Builders · 35 min
Debugging With AI Help
Bugs are where AI is most useful and most humbling. Paste errors, ask for causes, run experiments, and learn how to get a real answer instead of a guess.
Builders · 7 min
Using AI as a Smarter Rubber Duck
Explain your bug to Claude as if it were a coworker; the act of writing it out plus AI questions usually finds the issue.
Explorers · 40 min
Use AI to Fix Code That Does Not Work
When your code breaks, AI is amazing at finding the problem. Way faster than just staring at it.
