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

Debug mode not starting in SAM Local #347

Closed
vilaspmahajan opened this issue Apr 4, 2018 · 1 comment
Closed

Debug mode not starting in SAM Local #347

vilaspmahajan opened this issue Apr 4, 2018 · 1 comment

Comments

@vilaspmahajan
Copy link

i am trying to "sam local invoke "HelloWorld" -e event.json"

sam local invoke "HelloWorld" -e event.json
2018/04/04 19:29:51 Successfully parsed template.yaml
←[34mINFO←[0m[0001] Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows
2018/04/04 19:29:51 Connected to Docker 1.37
←[34mINFO←[0m[0001] Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows
2018/04/04 19:29:51 Fetching lambci/lambda:nodejs6.10 image for nodejs6.10 runtime...
nodejs6.10: Pulling from lambci/lambda
Digest: sha256:56205b1ec69e0fa6c32e9658d94ef6f3f5ec08b2d60876deefcbbd72fc8cb12f
Status: Image is up to date for lambci/lambda:nodejs6.10
2018/04/04 19:29:53 Invoking index.handler (nodejs6.10)
2018/04/04 19:29:53 Mounting /c/Users/{UserName}/Desktop/Hello-word as /var/task:ro inside runtime container

@jfuss
Copy link
Contributor

jfuss commented May 10, 2018

@vilaspmahajan You are not executing the right command if you want to be in Debug mode. You need to be passing a debug port and any debug args you need.

  -d, --debug-port TEXT           When specified, Lambda function container
                                  will start in debug mode and will expose
                                  this port on localhost.
  --debug-args TEXT               Additional arguments to be passed to the
                                  debugger

Closing as no issue

@jfuss jfuss closed this as completed May 10, 2018
qingchm pushed a commit to qingchm/aws-sam-cli that referenced this issue Sep 17, 2021
…ws#347)

* logs command improvements

* update help text and move imports into method

* sam traces command implementation

* add api gateway v1 support  and --include traces for sam logs

* small improvement on efficiency

* make linter happy

* add logging for apigatewayv2 http api

* add error handling for non exist log group

* update parameter with meaningful name

* move import to do_cli method

* fix some merge error

* add some unit tests

* make linter happy

* add stage as default parameter and update some unit tests

* update doc for defualt value

* fix unit test failure

* fix unit test failures

* fix type check error

* add more unit tests

Co-authored-by: Mehmet Nuri Deveci <5735811+mndeveci@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants