macos - 无法开始调试。GDB 意外退出,退出代码为 134 (0x86)
问题描述
我正在尝试在 macOS BigSur (11.4) 上使用 gdb 调试器,但没有成功。我总是得到同样的错误:无法开始调试。GDB 意外退出,退出代码为 134 (0x86),即使我尝试创建证书并对其进行签名(如下所示:https ://www.ics.uci.edu/~pattis/common/handouts/macmingweclipse/allexperimental/mac -gdb-install.html),我尝试使用命令启用调试csrutil enable --without debug
(如下所示:https ://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d )。
我正在使用该 launch.json 文件:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "gdb",
"type": "cppdbg",
"request": "launch",
"program": "/Users/felix/projects/artn_abinitio/build/artn.x",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/local/bin/gdb",
}
]
}
我正在使用 VsCode:版本:1.58.0-insider(通用)。
如果你有别的想法。谢谢!
解决方案
推荐阅读
- javascript - 如何使用机器人框架执行 jquery?
- php - Mysqli 语句执行在 PHP 中不起作用
- jquery - Litelement querySelector 为 Null
- javascript - JSON字符串化替换器忽略空对象
- npm - 如何解决 Office 加载项 (Outlook) 的此 NPM / Yeoman 错误日志?
- java - 使用 .equals 比较两个单字符串
- kubernetes - IBM ICP 上的 Watson Assistant - 安装时出现 Serviceid-Secret 错误
- php - MySQL插入防止双重
- r - 无法在 R 中安装预测包
- html - DIV 缩放时变为矩形