6

[c/c++]在 apple silicon 上还没支持原生 debugging?

 2 years ago
source link: https://www.v2ex.com/t/823155
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

[c/c++]在 apple silicon 上还没支持原生 debugging?

11 条回复    2021-12-20 01:20:27 +08:00

harwck

harwck      9 小时 56 分钟前

甚至发到 VSCode ,这个不是应该发到 Apple 节点让果粉们出来给你解释么

stimw

stimw      9 小时 17 分钟前

@harwck #1 这主题跟 vscode 和 apple 都相关那我发在哪个节点都无所谓吧。

janxin

janxin      9 小时 4 分钟前

这个应该是 cpptools 本身的没支持的原因吧,issue 里就有替代插件

xtinput

xtinput      6 小时 58 分钟前

换编译器呀,用 Xcode

dingwen07

dingwen07      6 小时 55 分钟前 via iPhone

看样子似乎是苹果自带的 LLDB 的问题,GDB 应该不会有问题
现在在 M1 上安装 GDB 还挺麻烦的,所以我搞 C 都去 Windows 里用 MSVC 或 WSL 下的 GCC 了

dingwen07

dingwen07      6 小时 55 分钟前 via iPhone

@xtinput #4 似乎就是 Xcode 的 LLDB 出了问题

xtinput

xtinput      6 小时 54 分钟前

可以通过 brew 安装标准 GCC

xtinput

xtinput      6 小时 44 分钟前

@dingwen07 apple silicon 才 1 年,原生适配啥的问题还不少,我搞 iOS 开发换 M1Max 的本子还没用模拟器跑过项目呢,各种三方库配置不支持,模拟器跑不起来,倒是直接运行跑起来了

dingwen07

dingwen07      6 小时 40 分钟前 via iPhone

@xtinput #7 brew 里 GCC 有,但是没有 GDB

Aspector

Aspector      5 小时 22 分钟前

我用的 clangd + codelldb + cmake tools

不知道 cpptools 比 clangd 强在哪里了,占硬盘空间、慢、#include 报错。可能是我需要的功能不多

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK