[英]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
我正在使用:
编辑:
正如库巴·奥伯(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.