Netbeans quot;Resolve missing debugger commandquot; C++(Netbeans“解决缺少的调试器命令C++)
问题描述
每当我尝试调试任何程序(即欢迎消息)时,我都会收到此提示.任何想法如何运行 C++ 程序的调试器?
Whenever I try to debug any program (i.e. a welcome message), I get this prompt. Any ideas how to run the debugger for C++ program?
我使用的是 Macbook Pro OS X El Capitan (10.11.3)
I am using Macbook Pro OS X El Capitan (10.11.3)
推荐答案
对于 Mac OSX 10.5 及更高版本,
For Mac OSX 10.5 and above,
安装 Homebrew(如果您还没有安装)
Install Homebrew (if you don't have it already)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装 GDB
Install GDB
brew install gdb
转到 https://sourceware.org/gdb/wiki/BuildingOnDarwin并按照说明对 gdb 二进制文件进行代码签名.
Go to https://sourceware.org/gdb/wiki/BuildingOnDarwin and follow the instructions to code sign the gdb binary.
如果您使用 Sierra,请在终端中运行以下命令
If you're on Sierra, run the following command in your terminal
echo "set startup-with-shell off" >> ~/.gdbinit
最后,在终端中运行以下命令
Finally, run the following comamnd in your terminal
which gdb
这篇关于Netbeans“解决缺少的调试器命令"C++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Netbeans“解决缺少的调试器命令"C++
基础教程推荐
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- CString 到 char* 2021-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 初始化列表*参数*评估顺序 2021-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
