Qt 5.1.0在Windows上使用minGW 4.8花费了很长时间来调试 [英] Qt 5.1.0 on Windows using minGW 4.8 taking a really long time to debug

查看:1541
本文介绍了Qt 5.1.0在Windows上使用minGW 4.8花费了很长时间来调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已从qt-project下载页面下载并安装了用于Windows 32位(MinGW 4.8)的Qt 5.1.0。我已经运行安装程序,并能够编译和运行应用程序使用这些库和minGW 4.8 32位工具链。

I have downloaded and installed the Qt 5.1.0 for Windows 32-bit (MinGW 4.8) from the qt-project downloads page. I have run the installer, and am able to compile and run applications using these libraries and the minGW 4.8 32-bit toolhchain.

但是,我有一个大的应用程序,当我尝试调试它(使用gG捆绑在minGW工具链),它需要一个疯狂的时间开始运行,任何与应用程序的交互都需要很长时间才能完成。不是恼人的时间量,但不可用的时间量。有没有其他人有这个问题,有什么解决方案?

However, I have a large application, and when I try to debug it (using the gdb bundled with the minGW toolchain), it takes an insane amount of time to start running, and any interaction with the application takes a long time to complete. Not an annoying amount of time, but an unusable amount of time. Has anyone else had this problem and are there any solutions?

如果这有帮助,我得到大量的输出调试时这样:

In case this helps, I get lots of output when debugging like this:

Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.1.0\5.1.0\mingw48_32\plugins\somefolder\somelib.dll"


推荐答案

在7.4和7.5之间的某个点引入,这使得它慢得多。当调试QObject类时,速度变得非常慢。

There is a gdb bug that was introduced at some point between 7.4 and 7.5, which makes it much slower. When debugging QObject classes, the slower becomes awfully slow.

通过禁用调试助手,你可以改进它,但是你会错过很多宝贵的信息在局部变量和表达式。例如,你不能很好地显示QLists等的内容...

By disabling debugging helper, you improve it, but then you miss a lot of precious information in the Local Variables and Expressions. For instance, you cannot display nicely the contents of QLists, etc...

似乎是:


  • 使用旧版gdb(7.4.1)从CVS或

  • 建立gid。
  • buidling gdb from the CVS or
  • using an older gdb (7.4.1)

可解决问题。

这篇关于Qt 5.1.0在Windows上使用minGW 4.8花费了很长时间来调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆