2016-07-03 48 views
3

マイQt5アプリがクラッシュし、私はこのウィンドウを閉じるには戻ってヒット: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. 

のQt Creatorを4キー(Mac OS)で「デバッグにmalloc_error_breakにブレークポイントを設定」する方法?

lldb/gdbのターミナルを使って行う方がよいでしょうか?

参考:How to find reason for app crash on close?ブレークポイント]ウィンドウで

答えて

4

、右クリック - >ブレークポイントの追加...変更ブレークポイントの種類から関数名Funcionでmalloc_error_breakを入力します。。別の方法は、デバッガコンソール(Cmd + )を開き、b malloc_error_breakと入力することです。

関連する問題