[Dev] Debugging Chandler threads with WingIDE?
Bryan Stearns
stearns at osafoundation.org
Fri Feb 10 14:33:36 PST 2006
I do all my remote debugging using wingdebugstub (and our --wing
option); it works fine for debugging the main (UI) thread. John's right:
if you add your own import of wingdbstub from a different thread (and
don't use --wing!), you'll be debugging that thread instead of the main one.
I've heard (on the wing-users mailing list) that it's possible to debug
more than one thread simultaneously by importing wingdbstub from more
than one thread, with multiple instances of Wing listening on more than
one port (you'd have to condition the settings in wingdbstub, or have
multiple wingdbstub.py's with different settings). I've never tried
this, though.
...Bryan
John Anderson wrote:
> Google says:
>
>It's possible to debug a single thread by importing wingdbstub instead
>of initiating the debug process from the IDE. Debugging is then on
>the thread that first does the import, although the usefulness of this
>depends on how you're using threads in your code.
>
>John
>
> Heikki Toivonen wrote:
>
>>Grant figured out a way to debug Chandler threads with ActiveState
>>Komodo (see
>>http://wiki.osafoundation.org/bin/view/Projects/DebuggingChandler#Multi_threaded_debugging_in_Komo)
>>and I have figured out how to do it with Eclipse and the pydev plugin
>>(in theory, since there is a bug that prevents me from trying it out).
>>
>>It seems like it should be possible to do something similar with
>>WingIDE. Has anyone looked, or asked the WingIDE guys if it could be
>>done? It would be best to direct them to the link above.
>>
>>If you ware wondering why, well, all mail code (including SSL) runs in
>>background that can't be debugged without these tricks, and it is likely
>>we'll be moving more code to background threads as well so the problem
>>is going to get worse if we don't find solutions.
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>>
>>Open Source Applications Foundation "Dev" mailing list
>>http://lists.osafoundation.org/mailman/listinfo/dev
>>
>>
>------------------------------------------------------------------------
>
>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
>Open Source Applications Foundation "Dev" mailing list
>http://lists.osafoundation.org/mailman/listinfo/dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/dev/attachments/20060210/beb7ef39/attachment.htm
More information about the Dev
mailing list