使用不同版本vscdoe调试不同版本nodejs

"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}"
        }
    ]
}

你可能感兴趣的:(使用不同版本vscdoe调试不同版本nodejs)