The following forum message was posted by psdlw at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3843473:
I need to debug a Tkinter application, without interrupting the Tk.mainloop process (or thread). I've followed the steps for remote debugging in http://pydev.org/manual_adv_remote_debugger.html, but once I activate the pydevd.settrace() the Tk mainloop becomes stale (hung up). I'm trying to get advice on how to enable a PyDev debug connection while leaving the mainloop running. The wing IDE provides some tips about using sockets to connect to GUI mainloops at: http://www.wingware.com/doc/howtos/non-python-mainloops/. In particular, they say: [quote] For those using an unsupported non-Python mainloop, Wing provides an API for adding the hooks necessary to ensure that the debugger's network sockets are serviced at all times. If you wish to write support for a non-Python mainloop, you first need to check whether there is any hope of registering the debugger's socket in that environment. Any mainloop that already calls UNIX/BSD sockets select() and is designed for extensible socket registration will work and is easy to support. Gtk and Zope both fell into this category. In other cases, it may be necessary to write your own select() call and to trick the mainloop into calling that periodically. This is how the Tkinter and wxPython hooks work. Some environments may additionally require writing some non-Python glue code if the environment is not already set up to call back into Python code. [/quote] In the 3.2 version of wing IDE, the socket hooks are coded in files at "... wingide3.2/src/debug/tserver". Is it possible to create similar code for the PyDev debugger? Thanks, Darren ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users