2016-10-22 88 views
-2

所以我一直试图解决这个问题,因为过去2小时,但没有用。CodeLite调试器不工作

问题:空白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==== 

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

+0

尝试从shel直接执行gdb,看看更好的原因是什么。你发布的内容对于诊断出现问题是无用的。 –

+0

我甚至在不保留本地设置的情况下重新安装CodeLite,但问题仍然存在。 如何直接从shell执行gdb? –

+0

如果你的意思是运行“C:\ TDM-GCC-64 \ bin \ gdb.exe”,那么是的,它运行良好。 –

回答

0

我选择了Debugger-> Delete All Breakpoints。 然后再加上我的断点,问题似乎现在已经修复。

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

0

使用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结构,如果不是,更多次将检查断点从这一点通过。