由于我将 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
我找不到使它起作用的方法...