Melvin's digital garden

Debugging Javascript without console.log

[2016-09-29 Thu 19:40:16] speaker: Sher Minn Chong event: talk.js

using chrome/firefox devtools

provides a js debugger

  • with breakpoints
    • break only when condition is true
  • stepping through the code
  • shows inlined values
  • pretty print minimized code

expression ‘debugger;’ creates a breakpoint

breakpoint on events

extensions for specific frameworks

Esc brings up the console on the source tab

Links to this note