-
Notifications
You must be signed in to change notification settings - Fork 675
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
Can't attach arm vscode debugger to x64 docker container #7575
Comments
Can you run |
Results on broken image /remote_debugger/vsdbg: POSIX shell script, ASCII text executable Results on working image /remote_debugger/vsdbg: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=2c44bdde133c446ec3a2f87bae75e5901926ce6e, with debug_info, not stripped |
Did you run See more information at https://github.com/dotnet/vscode-csharp/wiki/Attaching-to-remote-processes#installing-vsdbg-on-the-server |
OK, if I let vscode install the debugger itself when I am prompted I get:
I have tried running the following command as part of my docker build or as a seperate shell command that I run manually after the container has started.
In both of those cases I get: /remote_debugger/vsdbg: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, with debug_info, not stripped Sadly even with the correct executable it's timing out trying to connect to the debugger. |
Issue Description
I running an ARM MAC and am having trouble attaching to a container that is built for x64.
Steps to Reproduce
Use VsCode run and debug to Attach to a Docker .net core container that has been built using platform linux/amd64.
The exact same container debugs properly when it is built for ARM
This problem only occurs on local docker (docker desktop or orbstack) - When I use a remote x64 host it works as expected.
Expected Behavior
This container should bring up the debugger in the same way that it does if it is built fro ARM
Actual Behavior
The debugger never connects nor does it timeout
Logs
Starting: "docker" exec -i gen3-pvl_grpc-1 /remote_debugger/vsdbg --interpreter=vscode
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.93.1
C# Extension: 2.45.25
Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 8.0.201 Commit: 4c2d78f037 Workload version: 8.0.200-manifests.3097af8bRuntime Environment:
OS Name: Mac OS X
OS Version: 14.6
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/8.0.201/
.NET workloads installed:
There are no installed workloads to display.
Host:
Version: 8.0.2
Architecture: arm64
Commit: 1381d5ebd2
.NET SDKs installed:
6.0.411 [/usr/local/share/dotnet/sdk]
6.0.417 [/usr/local/share/dotnet/sdk]
7.0.305 [/usr/local/share/dotnet/sdk]
8.0.201 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.19 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.25 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.19 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.25 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: