Node.js VSCode NodeJs:调试器未在断点处停止(WSL2/Ubuntu18)

Node.js VSCode NodeJs:调试器未在断点处停止(WSL2/Ubuntu18),node.js,debugging,visual-studio-code,Node.js,Debugging,Visual Studio Code,使用WSL2/Ubuntu18,我无法使VSCode NodeJs调试器在任何NodeJs应用程序的断点上停止。当我启动调试器时,它会运行(我可以在集成终端上看到输出),但断点会被忽略 simple.js文件,第3行有一个断点: launch.json设置为: { "version": "0.2.0", "configurations": [ { "name"

使用WSL2/Ubuntu18,我无法使VSCode NodeJs调试器在任何NodeJs应用程序的断点上停止。当我启动调试器时,它会运行(我可以在集成终端上看到输出),但断点会被忽略

simple.js文件,第3行有一个断点:

launch.json设置为:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "NodeJs: Launch Program",
            "program": "${file}",
            "request": "launch",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "type": "pwa-node",
            "console": "integratedTerminal"
        }
    ]
}
我已经从Node10升级到Node14,但问题仍然存在

在另一台使用WSL1的计算机上,使用相同的launch.json,调试器将在给定的断点处停止。我是否需要在WSL2上另外设置一些内容?作为记录,这是WSL1计算机上的集成终端在第3行停止之前显示的内容:

/usr/bin/env 'NODE_OPTIONS=--require /home/myuser/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/ms-vscode.js-debug/src/bootloader.bundle.js --inspect-publish-uid=http' 'VSCODE_INSPECTOR_OPTIONS={"inspectorIpc":"/tmp/node-cdp.787-3.sock","deferredMode":false,"waitForDebugger":"","execPath":"/home/myuser/.nvm/versions/node/v14.15.1/bin/node","onlyEntrypoint":false,"autoAttachMode":"always","fileCallback":"/tmp/node-debug-callback-b901b6d6e3e9799b"}' /home/myuser/.nvm/versions/node/v14.15.1/bin/node ./simple.js 
Debugger attached.
<Breakpoint hit and stop...>
/usr/bin/env'NODE_OPTIONS=--require/home/myuser/.vscode服务器/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/ms-vscode.js-debug/src/bootloader.bundle.js--inspect发布uid=http''vscode_INSPECTOR_OPTIONS={“inspectorIpc”:/tmp/NODE cdp.787-3.sock”,“deferredMode”:false,“waitForDebugger”,“execPath”:“/home/myuser/.nvm/versions/node/v14.15.1/bin/node”,“onlyEntrypoint”:false,“autoAttachMode”:“始终”,“fileCallback”:“/tmp/node-debug-callback-b901b6d6e3e9799b”}”/home/myuser/.nvm/versions/node/v14.15.1/bin/node./simple.js
调试器已附加。

其他信息,调试Python3文件在两台机器上都能正常工作

两台计算机安装了相同的VS代码版本

更新:

您可以关注GitHub上的问题:

/usr/bin/env 'NODE_OPTIONS=--require /home/myuser/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/extensions/ms-vscode.js-debug/src/bootloader.bundle.js --inspect-publish-uid=http' 'VSCODE_INSPECTOR_OPTIONS={"inspectorIpc":"/tmp/node-cdp.787-3.sock","deferredMode":false,"waitForDebugger":"","execPath":"/home/myuser/.nvm/versions/node/v14.15.1/bin/node","onlyEntrypoint":false,"autoAttachMode":"always","fileCallback":"/tmp/node-debug-callback-b901b6d6e3e9799b"}' /home/myuser/.nvm/versions/node/v14.15.1/bin/node ./simple.js 
Debugger attached.
<Breakpoint hit and stop...>