~/talk

Debugging, a step away from the console

Talkat dotJS 2018 · on Friday, 2018-11-09· [web-platform, developer-experience]

Chrome DevTools Sources panel gets used to replace scattershot console.log calls with real inspection: a debugger statement pauses execution and shows scope values (example reveals "2" as a string not a number), clicking a line number sets a manual breakpoint, conditional breakpoints pause when myAttempts == 4, the call stack lets you jump to callers, the console evaluates live expressions, and the pause on exceptions stop‑sign pauses exactly where an error throws.

AI-written summary · about

  1. 0:00Start
  2. 0:32console.log?
  3. 1:14Debugging?
  4. 1:33Breakpoints How to pause your code to debug
  5. 1:43Insert "debugger;" statement
  6. 2:44Manual Breakpoints
  7. 3:53Uncaught Exceptions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.