Explain a stack trace to a junior dev
2 versions · currently on v2
History
Pick two versions to compare. Restoring adds a new version rather than deleting anything.
FromToVersion
- v2CurrentClaude17 days ago
Explain a stack trace to a junior dev
“reading order matters more than I expected”
- v1Claude17 days ago
Explain a stack trace to a junior dev
Comparing v1 → v2
+3 −1 lines
| 1 | 1 | Here is a stack trace. Explain it to someone in their first year of writing code. | |
| 2 | 2 | ||
| 3 | − | Walk 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: | |
| 4 | 6 | 1. The one line that actually caused the failure, and why. | |
| 5 | 7 | 2. Which frames are my code and which are library internals. | |
| 6 | 8 | 3. The two most likely root causes, most likely first. | |
| 7 | 9 | 4. What to check or print next. | |
| 8 | 10 | ||
| 9 | 11 | Do not paste the trace back to me. Do not suggest a fix until you have named the cause. |