Module 17 · Performance, Memory, Debugging and the Interview Output Puzzles
Every Tool for Measuring and Debugging, One by One
ProReading
David's delivery app has a bug that only shows on Fridays. He has been fixing it with console.log for two days. His terminal is a wall of text, and he cannot tell which line came from where. The bug is still there.
Checking what this lesson needs for you…
What is inside Every Tool for Measuring and Debugging, One by One
- performance.now and performance.mark
- console.time and console.timeEnd
- console.count
- console.table
- console.group
- console.dir and depth
- console.assert
- console.trace
- Reading Error.stack, line by line
- A stack trace across await
- process.memoryUsage, every field
- The debugger statement
- Source maps
- Which tool for which question