Foundations of Debugging Node.js
summary
A stepwise debugging recipe: start with console.log to validate assumptions, add structured JSON logging with Bunyan for timestamps and metadata, and aggregate logs to Papertrail to tail distributed services. Trigger the runtime debugger with a SIGUSR1 and use node-inspector to set breakpoints, inspect scope, and catch a swapped request/response signature that causes the failure. Several live demos show the fixes applied and the app returning expected responses.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 3:40Hello World
- 4:00Horizontal Space
- 4:25Basic Server
- 4:58Listing Whisperer
- 7:55Fav Icon
- 8:37Fail Icon
- 9:50Testing
- 13:38Next evolution
- 19:00PaperTrail
related talks
31mConsole.loggers Anonymous: A Debugging Roadmap from Local to Production
33mDebugging Your Node.js Apps
57mTroubleshooting Node.js Applications Under the Hood
16mNode.js Diagnostic Best Practices
50mDebugging Node.js in Production
24mDebuggin a Large Node Cluster
23mThrow Me a Lifebuoy: Debugging Node.js in Production with Diagnostic Reports
23mDebugging Your Way Through a Node.js Upgrade
