使用不同版本vscdoe除錯不同版本nodejs

weixin_33890499發表於2017-07-15

"runtimeExecutable": "${env:HOME}/.nvm/versions/node/v7.9.0/bin/node",

{
    // 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": "${workspaceRoot}/test.js",
            "runtimeExecutable": "${env:HOME}/.nvm/versions/node/v7.9.0/bin/node",
            "sourceMaps": true,
            "smartStep": true
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "program": "${file}"
        }
    ]
}

相關文章