When trying to debug my code, stepping into a method causes the debugger to stop at some points for no reason. For example:
- promiseInitHookWithDestroyTracking
- promiseInitHook
(both from unknown source)
When stepping-over these "invisible" break points after 2-5 of them I usually get to the method I'm trying to debug.
I'm trying to make the debugger skip over these points. My debug configuration I'm using contains the property: (launch.json )
"skipFiles": [
"<node_internals>/**"
]
Why is this happening, and how can I make it stop happening?
Example:
I created the following file called "test.js":
main();
async function main() {
let i = await func();
console.log(i);
}
async function func() {
return 1;
}
My launch.json contains:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/test.js",
"outFiles": [
"${workspaceFolder}/**/*.js"
]
}
]
}
I'm adding screenshots to describe the issue.
When stopping on "let i = await func();" then stepping into I get to the followings: (look at the call stack)
I expect to get to the state in the last screenshot immediately after stepping into, the debugger used to do so.