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
With the advent of .NET 6 RC2 on Apple Silicon (or Windows ARM64), it now installs the arm64 version in /usr/local/share/dotnet, and the x64 version in /usr/local/share/dotnet/x64. It was announced here.
The problem is that the arm64 build is unable to debug an x64 app and vice versa. The only way to support debugging an x64 app is to set the dotnet path globally to use the x64 version.
The launch configuration should be able to specify which dotnet to use when debugging, depending on the app you are launching.
The guidance above says to set the path to switch between them, but adding this to the launch config does not seem to work:
Launch an x64 app for debugging on an Apple Silicon Mac.
Expected Behavior
Should debug properly.
Actual Behavior
Unable to attach to CoreCLR. Unknown Error: 0x80131c3c
Logs
OmniSharp log
Post the output from Output-->OmniSharp log here
C# log
Post the output from Output-->C# here
Environment information
VSCode version: 1.61.2 C# Extension: 1.23.16
Mono Information
OmniSharp using built-in monoDotnet Information
.NET SDK (reflecting any global.json):
Version: 6.0.100-rc.2.21505.57
Commit: ab39070116
Runtime Environment:
OS Name: Mac OS X
OS Version: 11.6
OS Platform: Darwin
RID: osx.11.0-arm64
Base Path: /usr/local/share/dotnet/sdk/6.0.100-rc.2.21505.57/
Host (useful for support):
Version: 6.0.0-rc.2.21480.5
Commit: 6b11d64e7e
gregg-miskelly
changed the title
Support selecting dotnet architecture or path for launch configuration
macOS: Support selecting dotnet architecture or path for launch configuration
Oct 28, 2021
Issue Description
With the advent of .NET 6 RC2 on Apple Silicon (or Windows ARM64), it now installs the arm64 version in
/usr/local/share/dotnet
, and the x64 version in/usr/local/share/dotnet/x64
. It was announced here.The problem is that the arm64 build is unable to debug an x64 app and vice versa. The only way to support debugging an x64 app is to set the dotnet path globally to use the x64 version.
The launch configuration should be able to specify which dotnet to use when debugging, depending on the app you are launching.
The guidance above says to set the path to switch between them, but adding this to the launch config does not seem to work:
Steps to Reproduce
Launch an x64 app for debugging on an Apple Silicon Mac.
Expected Behavior
Should debug properly.
Actual Behavior
Unable to attach to CoreCLR. Unknown Error: 0x80131c3c
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.61.2
C# Extension: 1.23.16
Mono Information
OmniSharp using built-in monoDotnet Information
.NET SDK (reflecting any global.json): Version: 6.0.100-rc.2.21505.57 Commit: ab39070116Runtime Environment:
OS Name: Mac OS X
OS Version: 11.6
OS Platform: Darwin
RID: osx.11.0-arm64
Base Path: /usr/local/share/dotnet/sdk/6.0.100-rc.2.21505.57/
Host (useful for support):
Version: 6.0.0-rc.2.21480.5
Commit: 6b11d64e7e
.NET SDKs installed:
6.0.100-rc.2.21505.57 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.0-rc.2.21480.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.0-rc.2.21480.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: