我试图通过我的程序,我从Code :: Blocks获得以下消息
Selecting target:
Debug
ERROR: You need to specify a debugger program in the debuggers's settings.
(For MinGW compilers, it's 'gdb.exe' (without the quotes))
(For MSVC compilers, it's 'cdb.exe' (without the quotes))
不幸的是,我无法弄清楚我在哪里输入gdb.exe。
对于Code :: Blocks 17.12。
问候。
gdb.exe
(它应该是唯一的一个),右侧的对话框将显示“可执行路径”,右侧有一个按钮。gdb.exe
的路径(它有点发现)。executable path
查找gdb32.exe
的地址CodeBlock - > MinGW - > bin - > gdb32.exe(找到它并双击它)
通常GNU Debugger可能不在您的计算机中,因此您首先要安装它。安装步骤基本为“configure”,“make”和“make install”。
安装完成后,在终端中尝试which gdb
,找到GDB的可执行路径。
从官方网站下载codeblocks-13.12mingw-setup.exe而不是codeblocks-13.12setup.exe。这里13.12是迄今为止的最新版本。
点击顶部工具栏中的设置;
点击调试器;
在树中,通过单击突出显示“gdb / cdb debugger”
点击“创建配置”
单击默认配置,对话框将显示在右侧的“可执行路径”,右侧有一个按钮。
单击该按钮,它将显示安装了codeblocks的文件。只需一直单击,直到您创建gdb.exe的路径(它找到了自己的位置)。