Skip to content

Debug not works with "Sam local start-api" with "--debug-port" and "--warm-containers" #3749

Open
@CeccoCQ

Description

@CeccoCQ

With this command:
sam local start-api --template-file template.yml --region eu-west-1 --debug-port 5555 --warm-containers EAGER

and this launch.json

{
      "name": "Attach to SAM CLI",
      "type": "node",
      "request": "attach",
      "address": "localhost",
      "port": 5555,
      "localRoot": "${fileDirname}",
      "remoteRoot": "/var/task",
      "protocol": "inspector",
      "stopOnEntry": false
    }

my Visual Studio Code doesn't attach to container, I have no error or log, simply after 5 seconds the debug's topbar disappear.
The terminal logs doesn't show "Debugging listening on...." when I try lo execute an HTTP request.

All works fine removing --warm-containers param.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions