2016-07-03 81 views
3

我QT5应用程序崩溃时,我打了关闭窗口返回:Qt Creator中4(Mac OS)中如何在Qt Creator中“设置malloc_error_break中的断点来调试”?

MyApp(28741,0x7fff7aa73000) malloc: *** error for object 0x7fc40bc8e300: pointer being freed was not allocated 
*** set a breakpoint in malloc_error_break to debug 
The program has unexpectedly finished. 

如何“在malloc_error_break设置一个断点调试”?

应该更好地通过终端在lldb/gdb中做到这一点,怎么样?

参考:How to find reason for app crash on close?

回答

4

在断点窗口中,右键点击 - >添加断点...变化断点类型功能名称Funcion键入malloc_error_break。另一种方法是打开调试控制台(Cmd + )并键入b malloc_error_break

相关问题