Debugging with cdb
-
wrote on 11 Mar 2013, 12:18 last edited by
Hello everyone,
I've setup win7 + msvs 2010 ultimate + windows SDK + windows DDK (to get cdb.exe) + Qt 4.8.4 + QtCreator 2.6.1 (MSVS). I've set up the toolchain and pointed the creator to cdb.
The problem is that the is no user-friendly information in watch window for internal Qt's types. As to debug helpers: they are enabled and IDE configuration dialog says "not needed" for QML observer, QML debugger and GDB helper, which I suspect to be reasonable.
So is it possible to have nice view of Qt's types?
[moved to tools, koahnig]
-
wrote on 12 Mar 2013, 07:45 last edited by
Well, by now QString is shown ok, but, say, QDir is not. Is it ok?
-
wrote on 2 Apr 2013, 13:38 last edited by
Are you using a debug build of Qt? Release builds hide quite a bit of internal structure which makes it impossible to watch datatypes in the debugger (basically all containing a d-pointer).
-
wrote on 5 Apr 2013, 16:57 last edited by
Would updating GDB help to get more information out from Qt types? According this http://stackoverflow.com/questions/4720591/how-do-i-make-qt-creators-debugger-show-the-contents-of-c-vectors-in-os-x
I tried it out, but when starting debuggin I get error from gdb: GDB: Failed to set controlling terminal: Operation not supported on socket\n
Any ideas what's wrong?
-
wrote on 9 Apr 2013, 16:33 last edited by
You can safely ignore that message. Gdb does not like something about the way it is interacted with. The same happens in many other IDE that embed gdb.
-
wrote on 29 Oct 2013, 12:49 last edited by
I am having the same issue. Qt types don't display properly while debugging in Qt Creator. Any solution?
Win7 64-bit
win 7 SDK (msvc 2010 + CDB)
Qt 4.8.5
Qt Creator 2.8.1