Traces of Errors: Getting Better JavaScript Stacktraces
summary
Shows that browsers disagree about Error internals (Chrome embeds stack, IE only generates it on throw, Firefox exposes file/line/column) and that anonymous callbacks erase call-site names, so debugging is hard. Demonstrates a working monkey-patched addEventListener that forwards exceptions back into app-level handlers (adds extra stack frames but restores visibility), cites StackTrace.js, TraceKit, ZoneJS, trackjs as tools, and notes it took about 15 years for browsers to pass full stacks to global handlers.
AI-written summary · about
chapters (5)
- 0:00Start
- 0:26Traces of Errors Getting Better JavaScript Stacktraces
- 4:02Demo JavaScript Error
- 11:361. {object Error} 2. Error Paths
- 20:45Demo Error Paths callback edition
related talks
27mGetting the Most out of JavaScript Errors
58mSquashing JavaScript bugs
26mThe Trouble with Tracers
23mKicking Bugs and Logging Names: Errors in JavaScript Error Reporting
29mEssential JavaScript debugging tools for the modern detective
33mEssential JavaScript debugging tools for the modern detective
40mManeuvering Errors within the Bowels of JavaScript
01h 04mJavaScript's Most Wanted
