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

    xiaoxiao2023-11-11  164

    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))

    解决办法:

    查看编译器配置:

    setting -> compiler -> Toochain executables

    记录下编译器安装路径

    查看的debuger setting

    setting -> dubuger -> default

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

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

     

     

    最新回复(0)