gpt4 book ai didi

javascript - 使用 VSCode 的 Node 调试器时是否可以黑盒 vendor 代码?

转载 作者:IT老高 更新时间:2023-10-28 23:19:00 25 4
gpt4 key购买 nike

Chrome 开发工具提供了 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"
]

关于javascript - 使用 VSCode 的 Node 调试器时是否可以黑盒 vendor 代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48620826/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com