codeblocks 报错:ERROR: You need to specify a debugger program in the debuggers's settings.

codeblocks 报错:

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))
codeblocks 报错:ERROR: You need to specify a debugger program in the debuggers's settings._第1张图片

解决办法:

查看编译器配置:

setting -> compiler -> Toochain executables

记录下编译器安装路径

codeblocks 报错:ERROR: You need to specify a debugger program in the debuggers's settings._第2张图片

查看的debuger setting

setting -> dubuger -> default

添加Executable path: C:\Program Files (x86)\CodeBlocks\MinGW\bin\gdb32.exe (此处是 编译器 的安装路径,注意: 32位系统选择 gdb.exe, 64位系统选择: gdb64.exe)

codeblocks 报错:ERROR: You need to specify a debugger program in the debuggers's settings._第3张图片

添加完成后确认,就可以debug了。

 

 

你可能感兴趣的:(C,code,blocks)