【问题标题】:Error in VScode Debugger since I updated nodejs version from 6.10 to 8.10VScode 调试器出错,因为我将 nodejs 版本从 6.10 更新到 8.10
【发布时间】:2018-05-16 15:22:26
【问题描述】:

自从我将 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

我没有找到让它工作的方法......

【问题讨论】:

    标签: node.js debugging visual-studio-code aws-lambda vscode-debugger


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2019-09-27
      • 1970-01-01
      • 2020-04-12
      • 2017-08-04
      • 1970-01-01
      • 2020-12-10
      • 1970-01-01
      • 1970-01-01
      • 2019-10-07
      相关资源
      最近更新 更多