Debugging JS
Last updated: October 9, 2022
This is in the works! Would you like to help flesh it out? Let's do it!
- try and write code that works
- break it up
- keep scope small
- name things well
- console.log examples
- how errors show up
- what is a stack trace
- links
- sources panel
- console.table, console.trace
- debugger; statement
- debug(function.method); // find functions
- setting 1 break-point
- stopping, resuming, skipping over
- hover to see variable values (only when line is selected)
- watch
- is this the same as monitor(thing) ?
- any expression typeof etc
- state of variables in the console
- restart frame
- Setting many breakpoints
- anything unique about that?
- …
- …
- DOM breakpoints?
- …
- black box script
pause on caught exceptions
step types