PromptVault

Explain a stack trace to a junior dev

2 versions · currently on v2

Back to prompt

History

Pick two versions to compare. Restoring adds a new version rather than deleting anything.

FromToVersion
  1. v2CurrentClaude17 days ago

    Explain a stack trace to a junior dev

    reading order matters more than I expected

  2. v1Claude17 days ago

    Explain a stack trace to a junior dev

Comparing v1 → v2

+3 −1 lines

11 Here is a stack trace. Explain it to someone in their first year of writing code.
22  
3Walk through it in this order:
3+Start by telling me which end to read from and why.
4+ 
5+Then walk through it in this order:
46 1. The one line that actually caused the failure, and why.
57 2. Which frames are my code and which are library internals.
68 3. The two most likely root causes, most likely first.
79 4. What to check or print next.
810  
911 Do not paste the trace back to me. Do not suggest a fix until you have named the cause.