[Qt-creator] one click less in debugger?

André Pönitz apoenitz at trolltech.com
Fri Jan 23 11:04:16 CET 2009


Stefan Vollmar wrote:
> Here is a small thing that annoyed me and could be easily improved, I  
> think:

[Try it ;-)]

> I need to debug a particular function which has a local variable, say   
> CMyClass *pmc;
> When I am interested in member variables of the instance pointed to by  
> pmc, I need to click on "pmc" in the debugger's "Locals and Watchers"  
> tab (fair enough), which then yields "*pmc" and (this is the annoying  
> bit) only the next click will give me the desired information. The  
> click from "pmc" to "*pmc" does not tell me anything useful, or does it?

It's half a bug and half a feature.

For the "feature" part: The top level shows the object address, which 
can serve as a quick reality check whether the pointer may be valid
and the second level can already have information produced by the
dumpers. In case of QObject derived classes it e.g. shows the object
name. The potential triggering of the dumpers is the real reason not
to have it on the top level: a function containing a dozen local
QObject pointers would trigger a dozen dumper calls making stepping
far slower than it already is.

Andre'



More information about the Qt-creator-old mailing list