serverless-stack-demo-ext-api
serverless-stack-demo-ext-api copied to clipboard
How to debug services using vscode?
Installed serverless-offline Trying to debug the services in vscode. The debugger runs the lambda but doesn't pause on break points inside lambda code. Any idea how to make it work?
Here's launch.json object:
{
"type": "node",
"request": "launch",
"name": "setupStreaming",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceRoot}/node_modules/.bin/sls",
"cwd": "${workspaceFolder}/services/sessions",
"stopOnEntry": true,
"args": [
"invoke",
"local",
"--function",
"setupStreaming",
"--stage",
"dev",
"--path",
"./mocks/setupStreaming-event.mock.json"
]
}
Also tried to use sls --config and set the nested services/serviceName folder serverless.yml but any plugins it uses, it shows an error that the plugin is not found.
Hmm I might need some help with this. I'm not a VSCode user.