question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support debugging ARM64 processes on Apple M1

See original GitHub issue

Environment 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

  1. Create a new project
  2. Open the project in VSCode
  3. 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. image

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:21 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
skyflyercommented, Nov 16, 2021

@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

1reaction
gregg-miskellycommented, Mar 31, 2021

@TomMurphyDev yes, it is extremely likely that the C# extension will release osx-arm64 debugging support prior to the official .NET 6 release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem when trying to debug with lldb on new arm64 M1
I try to port it to the new arm64/darwin apple architecture since a contributor gave me an ssh access to its machine (I...
Read more >
How to debug simple C++ program with LLDB + arm64 M1?
On my M1 Macbook air, I can compile, run, and debug this program successfully: ... Process 55681 launched: '/Users/sam/build/a.out' (x86_64). Hello world.
Read more >
Writing ARM64 code for Apple platforms
Create 64-bit ARM assembly language instructions that adhere to the application binary interface (ABI) that Apple platforms support.
Read more >
Porting Your macOS Apps to Apple Silicon
Apple silicon supports all debugging and testing tools found on Intel-based Mac computers. Use the Xcode IDE to set and monitor breakpoints and...
Read more >
How does one get a universal macOS… - Apple Developer
In particular, if I build on my M1 mini, the error is ... not find module 'SwiftyXMLParser' for target 'x86_64-apple-macos'; found: arm64, arm64-apple-macos ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found