Explore the meaning of a promise in the Debug console
When debugging a node process in vscode, I can write an arbitrary expression to evaluate in the Debug console. But I don't know how to get the value if I write an expression that returns a Promise. It would be handy, for example, to examine what's in the database that calls a model function that returns a promise.
I tried
Format.all(context.engine).then(formats => console.log(formats))
But still only get the Promise object, not the value to be resolved.
+3
source to share
No one has answered this question yet
Check out similar questions:
1618