Visual studio code VSCode launch.json';s属性';滑雪板';没有按预期工作

Visual studio code VSCode launch.json';s属性';滑雪板';没有按预期工作,visual-studio-code,vscode-debugger,Visual Studio Code,Vscode Debugger,Vscode调试器未跳过节点_内部。我不知道我错过了什么。下面是我的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

Vscode调试器未跳过节点_内部。我不知道我错过了什么。下面是我的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"
            ]
        }


        
    ]
}

{
//使用IntelliSense了解可能的属性。
//悬停以查看现有属性的描述。
//有关更多信息,请访问:https://go.microsoft.com/fwlink/?linkid=830387
“版本”:“0.2.0”,
“配置”:[
{
“类型”:“节点”,
“请求”:“启动”,
“名称”:“构建并运行项目”,
“程序”:“${workspaceFolder}/out/code/main.js”,
“预启动任务”:“npm:构建”,
“源地图”:正确,
“smartStep”:没错,
“env”:{“NODE_PATH”:“${workspaceFolder}/out”},
“滑雪板”:[
“${workspaceFolder}/node_modules/***.js”,
“/***.js”,
"//**",
"**//**",
“/internal/**”,
],
“cwd”:“${workspaceFolder}”,
“外部文件”:[
“${workspaceFolder}/out/***/.js”
]
}
]
}
我尝试了所有可能的全局模式,但调试器没有跳过指定的路径

节点和npm版本

v14.16.0和6.14.11

代码版本(linux)

1.55.0 c185983a683d14c396952dd432459097bc7f757f x64


感谢您的帮助。:-)

是Windows还是Linux?我发现skip files语法取决于平台以及每个平台所需的/(Linux)或\(Windows)。此外,我认为您不需要文件夹的根位置,例如
/

在我频繁地在Windows和Linux之间移动时,我成功地提供了两种形式:

"skipFiles": [
  "${workspaceFolder}/node_modules/**/*.js",
  "${workspaceFolder}\\node_modules\\**\\*.js",
  "<node_internals>/**/*.js",
  "<node_internals>\\**\\*.js",
]
“SkipFile”:[
“${workspaceFolder}/node_modules/***.js”,
“${workspaceFolder}\\node\u modules\\***\*.js”,
“/***.js”,
“\\***\*.js”,
]
我确实希望有一个更简单的答案,但我还没有找到。

实际上是linux(Ubuntu 20.04)。