[Qt-creator] debugging

André Pönitz apoenitz at trolltech.com
Mon Nov 3 16:38:27 CET 2008


On Monday 03 November 2008 16:31:11 Tom Deblauwe wrote:
> Hello,
> 
> Thanks for the new IDE first of all, it is promising!
> 
> But I have a problem. There seems to be an option to show the contents 
> of qstring,etc and of lists. However, I don't understand what's the deal 
> with Qt 4.5. There is some file called gdbmacros.cpp that is compiled 
> with my code but it needs Qt4.5 for compiling -> It doesn't compile, it 
> can't find qtglobal.h. My code has been written for Qt 4.3.3, not for 
> 4.5.  So I can't link in the debug macro file. Is my understanding 
> correct that you only can see the contents of lists and maps when a 
> project is compiled with Qt 4.5? 

Basically yes. For "other" code you get the "C style view of the world"  ;-}

However, there should be code like

  #include <qglobal.h> 
  int qtGhVersion = QT_VERSION; 
  #if (QT_VERSION >= 0x040400) 

in gdbmacros.cpp to avoid compilation of that part. This check was added
pretty late in the process. Is it missing in your case?

> My project compiles fine when I uncheck  
> the option to link with gdb debug macro's.
> 
> Additional interesting features would be:
> - Instead of thread numbers, show the stack line where the thread is 
> at(like in kdbg). Then when you click, show the whole stack for that thread.

Noted as a feature request. 

Regards,
Andre'



More information about the Qt-creator-old mailing list