You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to attach a debugger to a locally running AWS Lambda function using the SAM CLI on an Apple ARM-based chip (e.g., M1/M2), the debugger keep hanging and never attached. My guess is potentially due to compatibility issues between the debugger, SAM CLI, and Docker on the ARM architecture.
Steps to reproduce:
Create new directory
mkdir -p ~/.vsdbg
Use Docker to download and install vsdbg for the AWS Lambda runtime container with .NET 6 and copy it to local machine
Thanks for reporting, to better understand this issue. If you run sam local invoke to invoke the .Net 6 function, will it also hang, or it only happens when you sam local start-api and try to attach a debugger?
@roger-zhangg The problem is that I want to use sam local start-api so that i don't have to supply the event.json payload for request instead I just need to use Postman to send the request. if I have to create myself a event.json payload, then I can just use the Mocked Lambda Test Tools and it worked just fine for me.
Thank you for the additional information. While we investigate the issue, you may try local invoke and debugging your Lambda functions using AWS Toolkit extension. You can load and save your test event for local invoke right inside of VS Code.
Description:
When attempting to attach a debugger to a locally running AWS Lambda function using the SAM CLI on an Apple ARM-based chip (e.g., M1/M2), the debugger keep hanging and never attached. My guess is potentially due to compatibility issues between the debugger, SAM CLI, and Docker on the ARM architecture.
Steps to reproduce:
I attempted to try both run the launch.json file before and after hitting the endpoint to see if it makes any different.
Observed result:
No breakpoint were hit. the debugger keep hanging and never actually attached.
Expected result:
It will actually hit the breakpoints.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.132The text was updated successfully, but these errors were encountered: