-
Notifications
You must be signed in to change notification settings - Fork 358
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
M1 Mac (Apple Silicon): Debugging SAM .NET Function not working #1566
Comments
Thanks for the report!
What does
|
The plot thickens. There is no ps in the container....(!)
I did a docker top instead:
|
Indeed, both Edit: I just noticed the Presumably this is because Docker is running an ARM Linux kernel, and userspace in the container is all running under StatusWe may need to do something more complex similar to the AWS Toolkit for JetBrains: https://github.com/aws/aws-toolkit-jetbrains/blob/0649bbb18c440b23a95e4753d442a32455409ed8/jetbrains-rider/src/software/aws/toolkits/jetbrains/services/lambda/dotnet/DotnetDebugUtils.kt#L224 |
I am not sure what is going on.
|
ok ... i understand now. The mac docker vm is arm64. Which runs the x86 emulation - which maps to your hypothesis.
|
I´m experiencing the same issue. |
+1 |
consider adding your upvote 👍 to the main description, this helps us decide priorities. But note that this issue likely needs to be resolved by https://github.com/aws/aws-sam-cli . |
bump |
Same issue here! 😢 |
So sad. bump bump. |
had the same issue for a dotnet app. no updates? |
This comment was marked as outdated.
This comment was marked as outdated.
If we specify arm64 architecture in template.yaml then debugger does not work because vsdbg debugger does not currently support the arm64 architecture and the function will run locally without debug. |
Status
|
Can someone please explain why this is blocked until Go Lambda functions can run on ARM? The title specifies that this is related to .NET functions. I'm seeing this same issue except I'm using .NET 6. It runs if I change the architecture to arm64 but then I can't debug. |
Having the same issue here in 2024. Running a .NET6 function with Architecture set to arm64 on an M1 Macbook Pro works but debugging doesn't work. The process hangs at "Waiting for a debugger to Attach" and then times out. How can I overcome this? |
When debugging the simple SAM .NET 3.1 or 2.1 hello world function you get a pop up error "No process with the specified name is currently running". And a timeout error: 2021-03-13 17:19:51 [ERROR]: Unable to attach Debugger. Check AWS Toolkit logs. If it took longer than expected to start, you can still attach.
Steps to reproduce
Expected behavior
I expect a debug session to start successfully which i confirmed works fine on an Intel Mac.
Screenshots
Desktop (please complete the following information):
Commit: fd6f3bce6709b121a895d042d343d71f317d74e7
Date: 2021-03-11T00:56:09.783Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Darwin x64 20.3.0
Also running latest docker M1 pre-release Docker Desktop preview 3.1.0
Additional context
Tried both x64 and arm64 modes for vs code. Same result.
I am wondering if it is related to: dotnet/vscode-csharp#4277
logs.txt
Extra logging debug:
The text was updated successfully, but these errors were encountered: