Learn JavaScript

Lesson 2 of 9 · Performance, Memory, Debugging and the Interview Output Puzzles

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

  1. performance.now and performance.mark
  2. console.time and console.timeEnd
  3. console.count
  4. console.table
  5. console.group
  6. console.dir and depth
  7. console.assert
  8. console.trace
  9. Reading Error.stack, line by line
  10. A stack trace across await
  11. process.memoryUsage, every field
  12. The debugger statement
  13. Source maps
  14. Which tool for which question