How to debug async functions using Chrome?

Viewed 5343

Take a look at the following code

async function example () {
  const a = await resolveAfter2Secs(20);
  const b = await resolveAfter4Secs(30);
  return a + b;
}

Is there a recommended standard way to debug this using Chrome dev tools? I've read about some options using Canary, but I'm looking for anything similar in Chrome.

Is there currently a way to enable async call stack feature in Chrome?

0 Answers
Related