-
Notifications
You must be signed in to change notification settings - Fork 445
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
(Colima) sam local invoke Command Succeeds, but VSCode Debugging Fails #5024
Comments
Using Docker Desktop instead of Colima works without issues. I suspect the problem is related to the Docker default socket configuration. |
Thanks, yes, that's likely a SAM CLI question. See also #3413 (comment) |
|
Environment Information
Summary of Issue
The
sam local invoke
command runs successfully from the terminal, but attempting to run the Lambda function using VSCode's debug feature fails.Steps to Reproduce
sam init
.DOCKER_HOST
environment variable.sam local invoke
from the terminal.launch.json
in VSCode:sam-app:HelloWorldFunction
using VSCode's debug feature.Expected Results
VSCode's debug execution should succeed, running the Lambda function just as it does from the terminal.
Actual Results
VSCode's debug execution fails with the following error:
Troubleshooting Steps Taken
DOCKER_HOST
environment variable.Logs and Commands
AWS Toolkit log from VSCode:
Manually executed commands:
Request
Please provide a solution to enable successful debug execution in VSCode. Are there any additional settings or steps required?
Thank you.
The text was updated successfully, but these errors were encountered: