使用 VSCode 的节点调试器时是否可以黑盒供应商代码?

Is it possible to blackbox vendor code when using VSCode's node debugger?

Chrome Dev Tools 已经提供了 blackbox 选择代码的功能,但在调试 Node 时我似乎找不到 VSStudio 的类似功能。

我已经解决了 debugger docs 和 VSCode 的 Github 的许多问题,但我似乎找不到答案。

是否可以从调试中排除(例如node_modules/)?

我必须承认,我还没有尝试过,几乎没有时间在 vscode 中使用调试,但似乎 v1.8 中支持 blackbox-ing:

https://code.visualstudio.com/updates/v1_8#_node-debugging

We have added a feature to avoid code that you don't want to step through. This feature can be enabled with the skipFiles setting in your launch configuration. skipFiles is an array of glob patterns for script paths to skip.

可以在您的启动配置中使用 skipFiles 排除文件:

 "skipFiles": [
    "node_modules/**/*.js",
    "lib/**/*.js",
    "async_hooks.js",
    "inspector_async_hook.js"
  ]