首页 > 解决方案 > 无法开始调试。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(通用)。

如果你有别的想法。谢谢!

标签: macosdebuggingvisual-studio-codegdb

解决方案


推荐阅读