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

こ雲淡風輕ζ 提交于 2019-12-18 19:02:51

问题


Chrome Dev Tools has offered the ability to blackbox selected code for a while now, but I can't seem to find a comparable feature for VSStudio when debugging Node.

I've been through the debugger docs and lots of issues on VSCode's Github, but I can't seem to find an answer.

Is it possible to exclude (for example node_modules/) from debugging?


回答1:


I haven't tried this I must admit, barely got round to use debugging in vscode just yet, but it does appear that blackbox-ing was supported in v1.8:

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.

Files can be exluded using skipFiles in your launch configuration:

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


来源:https://stackoverflow.com/questions/48620826/is-it-possible-to-blackbox-vendor-code-when-using-vscodes-node-debugger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!