Squashing JavaScript bugs
summary
Five real bugs are reproduced and fixed using Chrome DevTools: DOM inspector to trace event listeners, Sources debugger with breakpoints and the async stack checkbox to step through handlers, workspace live edits to patch code, and Application panel to inspect localStorage. Fixes include calling event.preventDefault() to stop form submits, using Function.prototype.bind to preserve this, client-side validation to stop 400 POSTs, and Timeline/Profiles to find an ad-driven memory leak that grows ~82.9K per interval.
AI-written summary · about
chapters (15)
- 0:00Start
- 0:21Smashing Javascript Bugs
- 6:24Dom Explorer
- 7:27Event Listeners
- 10:06Call Stack
- 11:59Debugging
- 20:47The Rant Text
- 21:52Application Capability
- 30:45Network Inspector
- 31:01Network Tab
- 36:38Find a Memory Leak
- 37:18Profiles Tab
- 44:37Creation of Nodes
- 56:00Dom Inspector
- 56:22Application Explorer
related talks
01h 08mSquashing JavaScript Bugs
47mDebugging, Profiling, & Rocking Out with Browser-Based Developer Tools!
49mEffective Browser JavaScript Debugging
01h 04mJavaScript's Most Wanted
39mDebugging With JS Frameworks
28mGetting down to brass tacks: Using chrome dev tools to level up your applications
29mEssential JavaScript debugging tools for the modern detective
25mDebugging, Profiling, & Rocking Out with Browser-Based Developer Tools!
