[py-dev] Greenlet debugging
Tom Locke
tom at livelogix.com
Mon May 23 08:03:52 CEST 2005
Hi,
I'm having a bash at adding debugging support for greenlets.
Specifically, I'd like to get a callback on the global trace function,
with the `event` arg set to "switch", whenever a greenlet switch takes
place (just after).
I'm also going to build a pdb.Pdb subclass that provides some support
for this. (e.g. a "sw" command, meaning "run until next switch").
Any comments / guidance appreciated
- Is this a good idea?
- Any reason this can't work?
- Will there be difficulties making this thread safe?
Thanks
Tom.
More information about the py-dev
mailing list