~/talk

Now and .then: Debugging Async JS

Talkat Nordic.js 2022 · 2022-10-06..10-07· [javascript, developer-experience]
slides:none on file

Concrete debugging recipes and gotchas: a callback that returns undefined because readFile runs asynchronously, a Promise wrapper that silently succeeds because it never rejects, and a .then/.catch ordering bug that still runs downstream handlers. Uses console.log for quick probes and the Chrome DevTools debugger to step through async flow. Highlights that async functions return promises, that refactors can turn parallel work into blocking awaits, and urges the rule always reject and practicing failure modes to learn what breaks.

AI-written summary · about

  1. 0:00Start
  2. 1:17Why Is Debugging Asynchronous Code So Difficult
  3. 1:46Examples of Async Bugs
  4. 2:57Get Config Function
  5. 11:10Silent Error
  6. 14:06The Debugger
  7. 19:24Promises and Async Await
  8. 20:56Break Point
  9. 21:36Async Functions Return Promises
~/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.