Javascript debugging Know your enemy
summary
Walks through concrete debugging steps: using Chrome DevTools breakpoints, event and XHR breakpoints, the Promise Inspector and throttling to replicate slow mobile networks, and debugging service worker lifecycle and offline caching. Demonstrates replacing server responses with Charles proxy and recording full user sessions plus network traffic to reproduce bugs. Shows a memory leak traced with heap snapshots where retained memory jumps from 3 MB to 11 MB to 30 MB (nearly 10x) and how to find and fix the leaking DOM references.
AI-written summary · about
chapters (13)
- 0:00Introduction to debugging
- 1:12Why debugging is essential
- 3:45Using breakpoints effectively
- 9:07Debugging slow connections
- 12:47Service workers for offline apps
- 17:12Detecting memory leaks
- 24:41Fixing memory leaks
- 25:04HTTP proxy debugging
- 27:45Debugging server-side code
- 30:39Debugging build tools
- 31:23Recording user interactions
- 33:37Full session recording
- 36:59Q&A and resources
