C++ CodeLite调试器不工作

C++ CodeLite调试器不工作,c++,debugging,C++,Debugging,所以,我一直在试图解决这个问题,因为过去2个小时,但没有任何效果 问题:弹出空白cmd窗口并在一秒钟内关闭 日志:- C:\Windows\system32\cmd.exe /C C:/TDM-GCC-64/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f Makefile "----------Building project:[ Test - Debug ]----------" mingw32-make.exe[1]: Entering direc

所以,我一直在试图解决这个问题,因为过去2个小时,但没有任何效果

问题:弹出空白cmd窗口并在一秒钟内关闭

日志:-

C:\Windows\system32\cmd.exe /C C:/TDM-GCC-64/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ Test - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Users/< User >/Documents/Varun/Test'
C:/TDM-GCC-64/bin/g++.exe -o ./Debug/Test @"Test.txt" -L.
mingw32-make.exe[1]: Leaving directory 'C:/Users/< User >/Documents/Varun/Test'
"----------Building project:[ Test2 - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Users/< User >/Documents/Varun/Test2'
C:/TDM-GCC-64/bin/g++.exe -o ./Debug/Test2 @"Test2.txt" -L.
mingw32-make.exe[1]: Leaving directory 'C:/Users/< User >/Documents/Varun/Test2'
====0 errors, 0 warnings====
C:\Windows\system32\cmd.exe/C:/TDM-GCC-64/bin/mingw32-make.exe-j4 SHELL=cmd.exe-e-f Makefile
“------------生成项目:[测试-调试]------------”
mingw32 make.exe[1]:输入目录“C:/Users//Documents/Varun/Test”
C:/TDM-GCC-64/bin/g++.exe-o./Debug/Test@“Test.txt”-L。
mingw32 make.exe[1]:离开目录“C:/Users//Documents/Varun/Test”
“------------生成项目:[Test2-调试]------------”
mingw32 make.exe[1]:输入目录“C:/Users//Documents/Varun/Test2”
C:/TDM-GCC-64/bin/g++.exe-o./Debug/Test2@“Test2.txt”-L。
mingw32 make.exe[1]:离开目录“C:/Users//Documents/Varun/Test2”
==0个错误,0个警告====

我正在尝试调试Test2的main.cpp。我甚至用hello world程序打开了一个新项目,添加了断点,进行了添加并尝试调试,但我的调试器刚刚关闭。

我选择了调试器->删除所有断点。 然后又添加了断点,现在问题似乎已经解决了


奇怪的是,我能够重现这个bug,我只需要在这个工作目录中的任何其他项目中有一个断点。

使用eclipse时,问题也是一样的

“IDE”需要知道什么是检查点(作为主线程),如果将检查点放在级别之下,那么方法将不起作用

你如何解决这个问题?您需要检查高级检查点来解决此问题

例如,当您使用IDE时,需要检查

Here will not work correctly : 

 method()
   method()  
      method()
         method()
           method()
              ......  method()   // if you only check Here will not work correctly

 Here will work correctly :    

 method() // You need check here "Here is the main thread"
   method()  // and here
      method()// and here
         method()// and here
           method()// and here
              ......  method()   // and here

请记住,通常在“运行”之前需要检查断点,因为IDE需要创建previus结构,否则,从这一点开始将经过更多的时间。

截至2018年9月,我在CodeLite上看到了这个问题,我可以确认这个问题。 解决方案是删除所有断点并继续。其他程序中的断点会导致此问题

在开始调试当前项目之前,请转到

调试器->删除所有断点


完成此操作后,调试器开始工作。可以在当前项目中添加断点并进行调试

尝试直接从shel执行gdb,以更好地了解原因。你发布的内容对于诊断出问题是无用的。我甚至在没有保留本地设置的情况下重新安装了CodeLite,仍然是相同的问题。如何从shell直接执行gdb?如果您的意思是运行“C:\TDM-GCC-64\bin\gdb.exe”,那么是的,它运行正常。将可执行文件添加为要打开的文件。或者在gdb启动后从提示符处加载它。我键入:-文件C:/Test2.exe//我已经在那里复制了整个调试文件夹。输出:-从C:/Test2.exe读取符号…完成。