How to run asynchronous code in chrome devtools when script execution is paused?

Viewed 4012

await Promise.resolve(1) in chrome devtools (chrome version 70.0.3538.77) resolves to:

  • 1 when script execution is not paused
  • Promise <pending> when script execution is paused

How to resolve it to 1 when script execution is paused

enter image description here

N.B.

this question continues chrome debugger promises dont resolve while paused? to find the exact way to resolve promises when chrome is paused

1 Answers

Answer - it's not possible to make promises resolve WHEN js is paused in chrome, even promises that are created in console

(js is single threaded)

Related