Any C/C++ debugger available for m1 right now?

I'm trying to debug a C++ code in Visual Studio Code(Apple Silicon Version). Have installed gcc with homebrew(native version), building and running works fine, but while debugging VSCode doesn't launch the file(I'm using Debug using C++/GDB option which comes with the C/C++ extension in the launch.json). I think this is because I don't have GDB installed(checked it via terminal, not installed). On Homebrew website it doesn't show an option for gdb for Apple Silicon. So is there a C++ debugger for m1 yet?

Posted on Mar 22, 2021 10:15 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 23, 2021 4:26 AM

Had you installed Xcode 12.4 and/or the command-line tools for Xcode 12.4, you would have the clang/clang++ compiler, and the lldb debugger that would either allow you to debug visually (Xcode) or in the Terminal. These tools support arm64 builds and debugging.


See Apple's Debugging tools.

2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Any C/C++ debugger available for m1 right now?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.