-
Notifications
You must be signed in to change notification settings - Fork 677
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
Debugging does not work on Mac 12.0.1 with M1 (arm64) and .NET 6 #4887
Comments
Are you using x64 VS Code? I believe what is going on is that the C# extension process is running in x64 node, so it thinks it is on an x64 machine. |
@gregg-miskelly, you're absolutely right. For posterity: I downloaded VS Code for Apple silicon and debugger now works. Thank you! |
I'm having the same issue, but my VScode is running in Apple silicon mode. The logs still say Trying to use azure functions |
@EthanSK please open a new issue. |
The debugging fails with error
Unable to attach to CoreCLR. Unknown Error: 0x80131c3c
.Interestingly, the debugger is installed for x64 and not arm64 - I'm not sure if that is by design or by mistake. I include the extension install logs below.
Environment data
VSCode version: 1.62.1
C# Extension: 1.23.16
Mono Information
OmniSharp using built-in monoDotnet Information
.NET SDK (reflecting any global.json): Version: 6.0.100 Commit: 9e8b04bbffRuntime Environment:
OS Name: Mac OS X
OS Version: 12.0
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/6.0.100/
Host (useful for support):
Version: 6.0.0
Commit: 4822e3c3aa
.NET SDKs installed:
6.0.100 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
OmniSharp log
No logs.
Steps to reproduce
dotnet new console
Console.WriteLine("Hello world")
Expected behavior
The debugger would start and stop on the breakpoint.
Actual behavior
The debugger will exit without any logs.
As instructed, I manually started
vsdbg-ui
and collected logs and also reinstalled c# extension.Extension install logs (N.B.: it installs x86_64 binaries):
The output of vsdbg-ui:
The text was updated successfully, but these errors were encountered: