Idea · Aug 30, 2026
Stack Trace Theater
A browser tool that animates Python and Java stack traces as frame-by-frame call stack walkthroughs, with LLM-generated plain-English explanations at each level so novices understand not just what failed but why.
What it would do
Stack traces are the primary error communication channel in CS1 and CS2, yet novices consistently misread them: they fix the bottom frame instead of the root cause, they ignore the exception type, and they panic at long chains of framework calls. Stack Trace Theater takes a pasted traceback and renders it as an animated call stack: frames arrive one at a time from the outermost call to the error site, each frame showing the source file, line number, and local variable state. Hovering over any frame reveals an LLM-generated one-sentence explanation of what that function was trying to do and why it reached this point. An interactive mode lets students step forward and backward through the call chain at their own pace. A class mode collects the most-pasted tracebacks across an active course section so instructors can see which error patterns recur and address them in the next lab. The tool supports Python tracebacks (including common library frames from Flask, NumPy, and Pytest) and JVM stack traces (Java and Kotlin).
Key features
- Animated frame-by-frame call stack walkthrough with forward/back stepping and variable state display at each frame
- LLM-generated one-sentence plain-English explanation per frame, tuned to CS1/CS2 vocabulary level
- Library-frame collapse: well-known framework internals (Flask routing, NumPy ufunc dispatch) collapse by default with a one-line summary, keeping focus on student code
- Instructor dashboard aggregating the most-common error types pasted during an active course section