2016-07-03 83 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

相關問題