serverless-nodejs-starter icon indicating copy to clipboard operation
serverless-nodejs-starter copied to clipboard

Debug lambda using VScode

Open vinyoliver opened this issue 6 years ago • 0 comments

Hi there,

I'm facing some trouble trying to debug the lambda using vscode. For some reason, it doesn't execute my lambda. When I run through the console using "sls invoke local -f signUp" runs fine. Bellow is my launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Debug Serverless",
      "program": "${workspaceRoot}/node_modules/.bin/sls",
      "args": ["invoke", "local", "-f", "signUp"]
    }
  ]
}

vinyoliver avatar Oct 02 '19 01:10 vinyoliver