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
Hi team. I am trying to debug a .NET 6 lambda function locally. But when when I try to run the debugger or invoke VS Code Hangs when attaching debugger to SAM application, then errors out with the following error messages:
Starting: "sh" -c "docker exec -i $(docker ps -q -f publish=5858) /tmp/lambci_debug_files/vsdbg --interpreter=vscode" The pipe program 'sh' exited unexpectedly with code 137
Starting: "sh" -c "docker exec -i $(docker ps -q -f publish=5858) /tmp/lambci_debug_files/vsdbg --interpreter=vscode" Error from pipe program 'sh': Error response from daemon: No such container: tmp/lambci_debug_files/vsdbg The pipe program 'sh' exited unexpectedly with code 1.
Steps to reproduce the issue
Run sam init
Choose Standalone function template. Keep the default settings
Go to AWS: Edit SAM Debug Configuration Command palette
Invoke Target Type = Template and load the helloFromLambdaFunction from the SAM Template
Set runtime to dotnet6.
Set Payload as "HelloWorld"
Invoke
Expected behavior
VS Code attaches Debugger using the public.ecr.aws/lambda/dotnet:6-rapid-x86_64 Docker image.
System details (run the AWS: About Toolkit command)
justinmk3
changed the title
Debugging .NET 6 Lambda Function Locally Does Not Work
(arm) Debugging .NET 6 Lambda Function Locally Does Not Work
Jun 15, 2024
justinmk3
changed the title
(arm) Debugging .NET 6 Lambda Function Locally Does Not Work
(ARM) Debugging .NET 6 Lambda Function Locally Does Not Work
Jun 15, 2024
Hi team. I am trying to debug a .NET 6 lambda function locally. But when when I try to run the debugger or invoke VS Code Hangs when attaching debugger to SAM application, then errors out with the following error messages:
Starting: "sh" -c "docker exec -i $(docker ps -q -f publish=5858) /tmp/lambci_debug_files/vsdbg --interpreter=vscode" The pipe program 'sh' exited unexpectedly with code 137
Starting: "sh" -c "docker exec -i $(docker ps -q -f publish=5858) /tmp/lambci_debug_files/vsdbg --interpreter=vscode" Error from pipe program 'sh': Error response from daemon: No such container: tmp/lambci_debug_files/vsdbg The pipe program 'sh' exited unexpectedly with code 1.
Steps to reproduce the issue
sam init
Expected behavior
VS Code attaches Debugger using the public.ecr.aws/lambda/dotnet:6-rapid-x86_64 Docker image.
System details (run the
AWS: About Toolkit
command)Version: 1.88.1 (Universal)
Commit: e170252f762678dec6ca2cc69aba1570769a5d39
Date: 2024-04-10T17:42:52.765Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.4.0
Other notes
The text was updated successfully, but these errors were encountered: