Saturday 28 December 2019

vscode debug code in node_modules directory

I have a node_js project that includes some of our own node_js packages. They are in an npm private repo and show up in node_modules as:

@company/package_name

We are trying to set breakpoints in this code and find they are never hit.

We thought there might be a default skipFile that excludes node_modules and added to our launch.json:

"skipFiles": ["!${workspaceRoot}/node_modules/**/*.js"]

to no effect.

Any tips on how to enable debugging in the node_modules directory?



from vscode debug code in node_modules directory

No comments:

Post a Comment