Skip to content

Commit 7d7b69d

Browse files
Allowing arm64 macOS to debug dotnet projects (dotnet#4288)
* Allowing arm64 macOS to debug dotnet projects Issue dotnet#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 dotnet/runtime#44958 for more details) * Adding `arm64` to debug architectures
1 parent accb074 commit 7d7b69d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@
273273
"darwin"
274274
],
275275
"architectures": [
276-
"x86_64"
276+
"x86_64",
277+
"arm64"
277278
],
278279
"binaries": [
279280
"./vsdbg-ui",

src/coreclr-debug/activate.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ async function checkForInvalidArchitecture(platformInformation: PlatformInformat
4343
else if (platformInformation.architecture !== "x86_64") {
4444
if (platformInformation.isWindows() && platformInformation.architecture === "x86") {
4545
eventStream.post(new DebuggerPrerequisiteWarning(`[WARNING]: x86 Windows is not currently supported by the .NET Core debugger. Debugging will not be available.`));
46+
} else if (platformInformation.isMacOS() && platformInformation.architecture === "arm64") {
47+
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.`));
48+
return false;
4649
} else {
4750
eventStream.post(new DebuggerPrerequisiteWarning(`[WARNING]: Processor architecture '${platformInformation.architecture}' is not currently supported by the .NET Core debugger. Debugging will not be available.`));
4851
}

0 commit comments

Comments
 (0)