Re: events grabbed globally - cannot debug callback
- From: Havoc Pennington <hp redhat com>
- To: ymedini iil intel com
- Cc: pygtk daa com au, gtk-app-devel-list gnome org
- Subject: Re: events grabbed globally - cannot debug callback
- Date: 01 Mar 2001 17:42:05 -0500
Yotam Medini <ymedini iil intel com> writes:
Probably a GTK issue - not pygtk specific.
I have a callback using:
gtk.GtkCList,connect('event', self.mycb);
Now this self.mycb calls a function foo() written in C/C++.
I managed to run it in gdb. But when I set a breakpoint in foo(),
when I get there - gdb does break, but my windows freeze.
Looks like the X11-focus was globally grabbed by GtkCList(?),
and I cannot do anything in that X Display.
Is there a way arround. How could one possibly debug
low level functions triggered by GUI callbacks?
The easiest way is with the "Xnest" program. Run 'Xnest :1' and then
start your app with DISPLAY=:1.
I tried starting this pygtk from a non-X environment in another tty,
setting an approriate DISPLAY independent of the debugger.
But there the application would not even start for some
another reason I do not understand.
But that should work too.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]