簡體   English   中英

Qt Creator調試器非常慢

[英]Qt Creator debugger very slow

我正在使用Qt Creator調試器,但是當我想通過從Locals和expressions視圖擴展this變量來檢查當前變量時,需要很長的時間(約30秒)才能交還控制權。

我在“ 調試器日志”視圖中注意到以下消息:

3518fetchVariables({"autoderef":1,"context":"","displaystringlimit":"100","dyntype":1,"expanded":["return","inspect","local.this","watch","local"],"fancy":1,"formats":{},"nativemixed":0,"partialvar":"local.this","passexceptions":0,"qobjectnames":1,"stringcutoff":"10000","token":3518,"typeformats":{},"watchers":[]})
(lldb) script theDumper.fetchVariables({"autoderef":1,"context":"","displaystringlimit":"100","dyntype":1,"expanded":["return","inspect","local.this","watch","local"],"fancy":1,"formats":{},"nativemixed":0,"partialvar":"local.this","passexceptions":0,"qobjectnames":1,"stringcutoff":"10000","token":3518,"typeformats":{},"watchers":[]})
bridgemessage={msg="Searching for type QObjectPrivate across all target modules, this could be very slow"},
eERROR: Lldb stderr: error: PlaybackDevice.o DWARF DW_TAG_array_type DIE at 0x0000db86 has a class/union/struct element type DIE 0x0000db92 that is a forward declaration, not a complete definition.
Try compiling the source file with -fno-limit-debug-info or disable -gmodule

我正在使用:

  • Qt 5.9.2
  • Qt Creator 4.5.0
  • OSX 10.12.6

編輯:

正如庫巴·奧伯(Kuba Ober)建議的那樣,由於以下鏈接,我使用了Qt(5.10.0)的調試版本: Qt Creator調試器非常慢

不幸的是,該消息已更改為:

eERROR: Lldb stderr: error: PlayBackDevice.o DWARF DW_TAG_array_type DIE at 0x0000f43e has a class/union/struct element type DIE 0x0000f44a that is a forward declaration, not a complete definition.
Try compiling the source file with -fno-limit-debug-info or disable -gmodule

我有同樣的問題。 對我來說,解決此問題的方法是取消選中“ QtCreator首選項->調試器->本地與表達式”中的“顯示可用的QObject名稱”。

我想您不是在使用Qt的調試版本。 盡管此“ bug”很煩人,但實際上確實迫使您使用Qt的調試版本來調試項目。 它應該使您的工作效率更高-當您有意義地進入Qt代碼時,更容易解決許多問題。

我有類似的問題,通過將我的編譯器更改為與我使用的lldb相同目錄中的Clang,可以解決大多數問題。 (順便說一句,Clang的文件名是gcc 。)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM