How to call async functions from VSCode debugger?
问题 If I drop into the VSCode debugger in some javascript code and call an asynchronous function with await it just returns a promise. How can I resolve the promise within the debugger so I can see what the result is? For example, if I define a function like so: const doAsyncThing = async () => { return new Promise((resolve) => { setTimeout(() => { resolve(5) }, 1000) }) } (async function() { const result = await doAsyncThing() console.log(`result is ${result}`) debugger })() Then this happens