0

由于我将 node-lambda 项目从 6.10 节点版本升级到 8.10,我的调试失败了。

我的配置是:

{
    // informations: https://go.microsoft.com/fwlink/?linkid=830387
    // usefull environnement variables list at https://code.visualstudio.com/docs/editor/variables-reference
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Debug Node Lambda ",
            "program": "/usr/local/bin/node-lambda",
            "args": [
                "run"
            ],
            "preLaunchTask": "debug",
            "postDebugTask": "clean",
            "runtimeVersion": "8.10.0",
            // "protocol": "inspector"
        },
}

这是我的输出错误信息:

/home/gwendal/.nvm/versions/node/v8.10.0/bin/node --inspect-brk=24258 ../../../../usr/local/bin/node-lambda run 
Debugger listening on ws://127.0.0.1:24258/d27c6111-ae5e-482a-a27a-e88829fd409f
Debugger attached.
Runtime [nodejs8.10] is not supported.
main.js:53

我找不到使它起作用的方法...

4

1 回答 1

0

问题是我没有将我的 node-lambda 更新为 sudo 和 -g 所以 11.7 版本(节点 8.10 需要)不起作用。现在一切正常。

于 2018-05-16T15:59:42.387 回答