Async bugs are tricky because code doesn't run linearly. Tips:
- Add breakpoints inside
.then()andasyncfunctions - Use
console.trace()to see where async code was triggered - Check the Async checkbox in DevTools to see async call stacks
- Watch for unhandled promise rejections in console