NodeJs debug await statements
Answered
When debugging a NodeJs code with "await", when I press F7 (Step into), instead of jumping to the method I jump into "async_hook"
How to tell Webstorm not to debug NodeJs internal's code ?
ex :
let vResult=await gxAppl.wGetDbServer();
Instead of entering method wGetDbServer I enter method "lazyHookCreation" in async_hook
Please sign in to leave a comment.
Could you check if downgrading Node.js helps? I can reproduce the issue with Node 15+ when debugging in both IDEA and VSCode (with stepping into node internals disabled), but it works fine for me when using Node.js 14.x. Must be an issue with V8 in Node.js 15/16; see https://github.com/nodejs/node/issues/36022
Thanks for the answer.
But how do you disable stepping into node internals ?
Effectively I downgrade to version 14.15.4 and the problem has disappeared
>But how do you disable stepping into node internals ?
It's disabled by default; Settings | Build, Execution, Deployment | Debugger | Stepping, Do not step into library scripts