VSCode 调试器在节点模块文件中意外暂停

VSCode Debugger pauses unexpectedly in node modules files

当 运行通过 VSCode 调试器运行我的 nodejs 服务器代码时,它会在多个节点模块库文件中奇怪地暂停。然后我只需要点击播放按钮一百次就可以最终 运行 整个代码。这太烦人了。我不知道如何解决它。我什至尝试跳过 launch.json 文件中的节点模块文件和文件夹,但它似乎不起作用。下面是我的 launch.json 文件。

{
    // Use IntelliSense to learn about possible Node.js debug 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": "Launch Program",
            "program": "${file}",
            "cwd": "${workspaceRoot}",
            "skipFiles": [
                "${workspaceRoot}/node_modules/**/*.js",
                "<node_internals>/**/*.js"
              ]
        },
        {
            "type": "node",
            "request": "attach",
            "name": "Attach to Process",
            "address": "localhost",
            "port": 5858
        }
    ]
}

取消选中它们,它将顺利运行