最佳答案
对于 Mac OSX 10.5 及更高版本,
安装 Homebrew(如果您还没有)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装 GDB
brew install gdb
转到 https://sourceware.org/gdb/wiki/BuildingOnDarwin并按照说明对 gdb 二进制文件进行代码签名。
如果您使用的是 Sierra,请在您的终端中运行以下命令
echo "set startup-with-shell off" >> ~/.gdbinit
最后,在您的终端中运行以下命令
which gdb
- 将该命令的输出路径(我的是/usr/local/bin/gdb)复制到 Netbeans 中的调试器命令框中并开始调试!
关于c++ - Netbeans "Resolve missing debugger command"C++,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35497491/