C++ 代码块调试器无法启动
我使用的是64位Windows操作系统和代码块版本17.12。 每当我尝试调试代码时,我都会收到以下消息,并且调试不会启动C++ 代码块调试器无法启动,c++,c,windows,codeblocks,C++,C,Windows,Codeblocks,我使用的是64位Windows操作系统和代码块版本17.12。 每当我尝试调试代码时,我都会收到以下消息,并且调试不会启动 Active debugger config: GDB/CDB debugger:Default Building to ensure sources are up-to-date Selecting target: Debug Adding source dir: C:\CX\will\ Adding source dir: C:\CX\will\
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\CX\will\
Adding source dir: C:\CX\will\
Adding file: C:\CX\will\bin\Debug\will.exe
Changing directory to: C:/CX/will/.
Set variable: PATH=.;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\CodeBlocks\MinGW;C:\oraclexe\app\oracle\product\10.2.0\server\BIN;C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby2.3.0\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files\PuTTY;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Program Files\Java\jdk1.8.0_161\bin;C:\Users\Vinay A\AppData\Local\Microsoft\WindowsApps;C:\Users\Vinay A\AppData\Local\atom\bin;C:\Program Files\Java\jdk1.8.0_151\bin;C:\Users\Vinay A\AppData\Roaming\npm
Starting debugger: C:\Program Files (x86)\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname -quiet -args C:/CX/will/bin/Debug/will.exe
failed
我已将环境变量中的路径设置为C:\ProgramFiles(x86)\CodeBlocks\MinGW\bin
我还在CodeBlocks
中设置了生产调试标志-g
该代码是控制台应用程序项目的一部分。
调试器的可执行路径是C:\ProgramFiles(x86)\CodeBlocks\MinGW\bin\gdb.exe
我错过了什么?
请帮忙。
提前感谢。安装旧版本的代码块,因为17.12版的代码块调试器有问题。安装旧版本的代码块,因为17.12版的代码块调试器有问题。转到
设置,然后调试器…
和GDB/CDB调试器
然后按重置默认值
进入设置
,然后进入调试器…
和GDB/CDB调试器
然后按重置默认值
调试器是否存在于指定的路径(即C:\ProgramFiles(x86)\CodeBlocks\MinGW\bin\gdb.exe
)处?你能通过CLI运行调试器吗?你调试C、C++还是混合?C和C++是不同的语言。对于C++和 Gcc应该使用<代码> G+++ >代码(是的,我知道编译器将根据文件扩展正确地处理)。<代码> >:/CX/WIL/BI/DEBG/WOR.exe < /代码>是否存在?运行32位调试器调试64位应用程序吗?我卸载了CODEBLUX版本17.12和安装版本16.01。现在它正在工作。调试器是否存在于指定的路径(即C:\ProgramFiles(x86)\CodeBlocks\MinGW\bin\gdb.exe
)处?你能通过CLI运行调试器吗?你调试C、C++还是混合?C和C++是不同的语言。对于C++和 Gcc应该使用<代码> G+++ >代码(是的,我知道编译器将根据文件扩展正确地处理)。<代码> >:/CX/WIL/BI/DEBG/WOR.exe < /代码>是否存在?运行32位调试器调试64位应用程序吗?我卸载了CODEBLUX版本17.12和安装版本16.01。现在它开始工作了。