I can't debug an async "await" instruction. I always have a promise.
I have seen that there is an "Async" button where the red square is in the picture but I don't have it.

Here is the run config:

When I evaluate the expression:

In the documentation of WebStorm you can see that there is the "Async" checkbox.

Does anyone have an idea how I can debug and the result of an await?
Async checkbox has been removed from debugger UI, async stack traces are always enabled.
To evaluate the value of promise use await operator, like await getPromise(). Unfortunately due to JavaScript engine limitations (https://bugs.chromium.org/p/chromium/issues/detail?id=833928) value of Promise can be obtained only when execution is not stopped at a breakpoint:( You can try evaluating the value during code execution in debugger (when execution is not suspended)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With