[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: New debugging utility in kdesdk CVS module
From: Richard Moore <rich () ipso-facto ! freeserve ! co ! uk>
Date: 2001-05-03 0:06:55
[Download RAW message or body]
After some discussion on IRC, I've added a new debugging utility to kdesdk,
namely KSpy. This is a tiny library which can be used to graphically display
the QObjects in use by an app. In addition to the object tree, you can also
view the properties, signals and slots of any QObject. Basically it provides
much the same info as QObject::dumpObjectTree() and
QObject::dumpObjectInfo(), but in a much more convenient form. KSpy has
minimal overhead for the application, because the kspy library is loaded
dynamically using KLibLoader.
To use it from your code, build and install kdesdk/kspy then #include
<kspy.h>, finally call KSpy::invoke() when you want to run the probe. The app
keeps running, so you can see how the state of an object changes over time
too.
There's a quick screenshot of KSpy at the link below, but it's not really
much too look at.
http://www.ipso-facto.demon.co.uk/development/kspy.png
Rich.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic