Debugging Gtk/Gnome Applications


How do you debug Gtk/Gnome applications? I've the problem that some
widgets do a focus_grab after one mouseclick. If a breakpoint is set
in the piece of code executing after this mouseclick, the whole
scenario just stops. No more input is possible, and of cource you
can't give the continue command to gdb. The only thing you can do is
swuitch over to an ASCII console and kill the process.

I know how to make breakpoints with commands with gdb. All i need to
know is if it is

1) Which function call should i use to ungrab the

2) Is this somewhat save? i know it will trigger weird behaviour for
   some applications (double clicking).

Michael Lausch/g.a.m.s. edv dienstleistungen gmbh
See my web page <> or query PGP key server for PGP key.
"Reality is that which, when you stop believing in it, doesn't go away".
                -- Philip K. Dick

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