美文网首页
使用不同版本vscdoe调试不同版本nodejs

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

作者: 冰星寒水 | 来源:发表于2017-07-15 17:18 被阅读22次

    "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

          本文链接:https://www.haomeiwen.com/subject/wyhzhxtx.html