Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to debug services using vscode? #15

Open
tomeraz opened this issue Jul 28, 2020 · 2 comments
Open

How to debug services using vscode? #15

tomeraz opened this issue Jul 28, 2020 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@tomeraz
Copy link

tomeraz commented Jul 28, 2020

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

@tomeraz tomeraz changed the title How to debug vscode? How to debug services using vscode? Jul 28, 2020
@tomeraz
Copy link
Author

tomeraz commented Jul 28, 2020

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.

@jayair
Copy link
Member

jayair commented Aug 17, 2020

Hmm I might need some help with this. I'm not a VSCode user.

@jayair jayair added the help wanted Extra attention is needed label Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants