[Twisted-Python] Re: Debugging client programs

Christopher Armstrong radix at twistedmatrix.com
Wed Jul 30 16:09:06 MDT 2003


On Wed, Jul 30, 2003 at 04:42:51PM -0500, John Goerzen wrote:
> I want to do things the right Twisted way.  But I don't want to make
> that an inconvenience on the users.  It seems that the solutions
> presented thus far for using twistd for a client will do that, so
> that's why I wasn't before.  It's OK with me to not do that; I just
> thought it was odd to be called "deluded" for not doing so.

I've written a few clients with Twisted, usually GUI things, and I've
never used twistd. Sometimes it would be possible, but I think in your
case, it's not worth all the hassle. Maybe if someone made a _sane_
programmatic interface to twistd (so you could fire it up after
figuring out which reator you want to use, etc), it would be usable in
this situation, but that doesn't exist.

As for debugging, just run pdb.py on your script.

-- 
 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/




More information about the Twisted-Python mailing list