Support debugging ARM64 processes on Apple M1
See original GitHub issueEnvironment data
Mac OS: osx.11.2-arm64 with chip: Apple M1 VS Code version:1.53.0 C# Extension version:1.23.9 .NET 6 arm64: 6.0.100-preview.1.21108.2
Steps to reproduce
- Create a new project
- Open the project in VSCode
- Click F5 to debug the project.
Expected behavior
The project could debug succeed.
Actual behavior
Debugging project failed as unable to attach to CoreCLR. Unknown Error: 0x80131c3c.
dotnet --info
output:
.NET SDK (reflecting any global.json):
Version: 6.0.100-preview.1.21108.2
Commit: 2e79ad7aed
Runtime Environment: OS Name: Mac OS X OS Version: 11.2 OS Platform: Darwin RID: osx.11.0-arm64 Base Path: /usr/local/share/dotnet/sdk/6.0.100-preview.1.21108.2/
Host (useful for support): Version: 6.0.0-preview.1.21102.12 Commit: 9b2776d481
.NET SDKs installed: 6.0.100-preview.1.21108.2 [/usr/local/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 6.0.0-preview.1.21103.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.0-preview.1.21102.12 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:21 (9 by maintainers)
Top GitHub Comments
@EthanSK, for what is worth, I had the same problem (see #4887), and then I installed arm64 version of VSCode and removed the
~/.vscode/extensions/ms-dotnettools.csharp-1.23.16
folder. That made it download arm64 binaries (in addition to x64).You can verify that you have them by checking
ls -l ~/.vscode/extensions/ms-dotnettools.csharp-1.23.16/.debugger
@TomMurphyDev yes, it is extremely likely that the C# extension will release osx-arm64 debugging support prior to the official .NET 6 release.