[Qt-creator] Easy Description on how the "Pretty Printers" work in QtCreator

Michael Jackson mike.jackson at bluequartz.net
Fri Apr 9 17:32:11 CEST 2010


I am interested in porting some functionality from the QtCreator Debugger
into another environment, specifically the ability of QtCreator's debugger
front end to display a reasonable value for things like QString and such. I
understand that the first thing is that my code needs to link against the
qtc-debugging-helper library. I took a look at some of that code and it
seems straight forward enough. I even started digging into QtCreators gdb
front end code (plugins/debugger/gdbengine.cpp) to try and figure out
exactly what is going on but no such luck. I am a completely 'wet behind the
ears' when it comes to directly interfacing with gdb. I have used gdb on a
command line a few times in the past but not enough so that I am any sort of
guru or even really know what is going on.
  I guess what I am looking for is a basic sequence of events that describes
how to get the "value" from the actual debugger into the Gui. So when the
user looks down at the "local variables" area and sees a QString variable
and it has "Hello World" as its value, how did "Hello World" end up there.

Thanks to anyone for help
Mike Jackson




More information about the Qt-creator-old mailing list