When debugging JavaScript in Visual Studio Code using ESlint, most of the files it tries to step into are node_internals, eg: module.js, bootstrap_node.js util.js etc. You can manually 'Toggle skipping this file' to skip them but it doesn't remember your selection. Is there a way in settings to ignore all of the node_internals files, or need to manually add them all to an ignore list?
Asked
Active
Viewed 419 times
2
-
1Did you look at https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_skipping-uninteresting-code-node-chrome (skipFiles and node_internals)? – Mark Aug 09 '18 at 16:11
-
Possible duplicate of [How do I skip external code when debugging in VS Code](https://stackoverflow.com/questions/47556495/how-do-i-skip-external-code-when-debugging-in-vs-code) – Mark Aug 09 '18 at 16:13
-
I've voted up the skipFiles thanks, that was exactly what I was looking for. The external code question is slightly different from node_internals but yes agree solved by the same docs – Leigh Mathieson Sep 18 '18 at 10:04
-
There are two methods, either add a local debug config when in the folder you are debugging and use the skipFiles as below, or set a user default: from preferences, settings and type launch, select 'edit in settings.json' and include in there: `"launch": { "configurations": [ { "type": "node", "request": "launch", "name": "Skip Node Internals", "program": "${file}", "skipFiles": ["
/**/*.js"] } ], "compounds": [] }` – Leigh Mathieson Sep 18 '18 at 10:55