AnomalyInnovations / serverless-nodejs-starter

A Node.js starter for Serverless Framework with ES6 and TypeScript support
https://serverless-stack.com/chapters/serverless-nodejs-starter.html
MIT License
755 stars 156 forks source link

Debug lambda using VScode #49

Open vinyoliver opened 4 years ago

vinyoliver commented 4 years ago

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"]
    }
  ]
}