From bb211688d5e465afebc307ffca21524dd19dc2f3 Mon Sep 17 00:00:00 2001 From: Arthur Lockman Date: Fri, 11 Dec 2020 10:30:12 -0500 Subject: [PATCH 1/2] Allowing arm64 macOS to debug dotnet projects Issue #4277 This commit removes the bit of code that was preventing the .net debugger from starting on Apple Silicon. I've added a warning message that indicates that you might see unexpected issues when running this way. This should start working once macOS 11.1 is released next week. (See https://github.com/dotnet/runtime/issues/44958 for more details) --- src/coreclr-debug/activate.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/coreclr-debug/activate.ts b/src/coreclr-debug/activate.ts index 749de5cfd7..cfe156f894 100644 --- a/src/coreclr-debug/activate.ts +++ b/src/coreclr-debug/activate.ts @@ -43,6 +43,9 @@ async function checkForInvalidArchitecture(platformInformation: PlatformInformat else if (platformInformation.architecture !== "x86_64") { if (platformInformation.isWindows() && platformInformation.architecture === "x86") { eventStream.post(new DebuggerPrerequisiteWarning(`[WARNING]: x86 Windows is not currently supported by the .NET Core debugger. Debugging will not be available.`)); + } else if (platformInformation.isMacOS() && platformInformation.architecture === "arm64") { + eventStream.post(new DebuggerPrerequisiteWarning(`[WARNING]: arm64 macOS is not officially supported by the .NET Core debugger. You may experience unexpected issues when running in this configuration.`)); + return false; } else { eventStream.post(new DebuggerPrerequisiteWarning(`[WARNING]: Processor architecture '${platformInformation.architecture}' is not currently supported by the .NET Core debugger. Debugging will not be available.`)); } From a01fca44438404898994f60e726e062e89e85f9e Mon Sep 17 00:00:00 2001 From: Arthur Lockman Date: Fri, 11 Dec 2020 12:55:34 -0500 Subject: [PATCH 2/2] Adding `arm64` to debug architectures --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 97a5d7b2fb..d4177f01d4 100644 --- a/package.json +++ b/package.json @@ -273,7 +273,8 @@ "darwin" ], "architectures": [ - "x86_64" + "x86_64", + "arm64" ], "binaries": [ "./vsdbg-ui",