【发布时间】:2021-04-06 05:28:13
【问题描述】:
Vscode 调试器没有跳过 node_internals。我不知道我在这里缺少什么。下面是我的launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Build and run Project",
"program": "${workspaceFolder}/out/code/main.js",
"preLaunchTask": "npm: build",
"sourceMaps": true,
"smartStep": true,
"env": {"NODE_PATH": "${workspaceFolder}/out"},
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js",
"<node_internals>/**/*.js",
"/<node_internals>/**",
"**/<node_internals>/**",
"<node_internals>/internal/**",
],
"cwd": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/out/**/*.js"
]
}
]
}
我尝试了所有可能的 glob 模式,但调试器没有跳过指定的路径。
节点和 npm 版本
v14.16.0 和 6.14.11
代码版本(linux)
1.55.0 c185983a683d14c396952dd432459097bc7f757f x64
感谢任何帮助。 :-)
【问题讨论】:
标签: visual-studio-code vscode-debugger