Re: [gtk-list] GTK and debugger



On Fri, 27 Nov 1998, oguerin wrote:

> Hello,
> somebody told me there was a special debugger to use in order to debug
> GTK applications... Is it true ?

there is no Gtk-specifc debugger out there, but actually gdb as a general
purpose debugger works pretty well with gtk applications.
if you look for something that would help you with "debugging" widget trees,
e.g. display them on screen while your application is running and modify
certain widget specifc properties, you could try out GLE which is in the GNOME
CVS repository. unfortunately it will usually only work together with the most
recent Gtk+ version, but it can be used to query/display the widget trees of
virtually any Gtk program that runs with the recent Gtk CVS version.
you simply compile GLE, install it and run your Gtk applications with
--gtk-module=gle or you set the environment variable GTK_MODULES=gle.
when the Gtk application is then up and running, you press <Ctrl>+<Alt>+<Tab>
in any of its windows and are then able to examin their widget trees.

> Thank you,
> Olivier Guerineau
> 

---
ciaoTJ



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]