Debugging Promise calls in vscode

Is there a way to get a call stack when debugging nodeJS Promises in vscode? I see that support for asynchronous call stacks is supported in this GitHub issue , but it looks like it refers to vanilla JS callbacks.

Now that I am paused at a breakpoint, the call stack is tiny, although I know that this function is called from another (pair) of functions.

I work on node v6.9.x

debug break no stack

EDIT : adding the "protocol": "inspector" to the launch.json configuration adds a few more stack frames, but this is not very useful: debug break next tick

All my functions return promises, and the function in the screenshot is called as one of the call functions of Promise.all() .

+7
javascript es6-promise visual-studio-code
source share

No one has answered this question yet.

See related questions:

5129
How to return a response from an asynchronous call?
2984
What is the difference between calling and applying?
1517
How to debug Node.js applications?
1310
Stop setInterval call in JavaScript
990
How do you format your code in Visual Studio Code (VSCode)
712
How to adjust tab to space conversion rate?
598
How to access the results of previous promises in the .then () chain?
395
Multiline editing in Visual Studio Code
3
How to configure VSCode to debug a linked webjpack nodejs server
0
Debugging a NodeJS child process' VSCode babel node

All Articles