在 VS Code 中调试时如何跳过外部代码 [英] How do I skip external code when debugging in VS Code
本文介绍了在 VS Code 中调试时如何跳过外部代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 vscode 中调试时,我想做一些黑箱"并且不要输入我没有编写的代码.我该怎么做?
When debugging in vscode I'd like to make some "blackboxing" and do not enter into code I didn't write. How can I do this?
推荐答案
在启动或附加调试任务中,您可以输入一个
In your launch or attach debug task you can enter a
跳过文件"
选项是
调试时要跳过的文件或文件夹名称数组,或路径全局."
"An array of file or folder names, or path globs, to skip when debugging."
例如,来自在调试期间跳过节点内部一个>
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js",
"${workspaceFolder}/yourLibToSkip/**/*.js"
]
另外,还有一个魔法参考"到您可以使用的内置核心节点模块:
Also, there is a "magic reference" to the built-in core node modules you can use:
"skipFiles": [
"<node_internals>/**/*.js"
]
这篇关于在 VS Code 中调试时如何跳过外部代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文