[Twisted-Python] Re: [Stackless] Advice on Debugging Stackless/Twisted Problem involving Deferreds

Rodrigo Senra rodsenra at gpr.com.br
Wed Apr 25 06:46:20 MDT 2007


[ Andrew Francis ]:

|Hello Colleagues:
|
|I am try to debug a problem involving Stackless and
|Twisted (once again). I don't see why Twisted and
|Stackless cannot inter-operate. 

# snip 
|
|Using print statements and pdb (I find it rough using
|pdb with Stackless Python), the Twisted symptoms are:
|
|1) ConnectTCP is successfully called. However the
|actual call is never made (i.e., I monitored my Apache
|web server's access.log). As a side note, I haven't
|quite figured out how the HTTPClientFactory interacts
|with the Twisted reactor. 
|2) The deferred is never called.
|3) Twisted seems to stop in MainLoop(),
|4) No errors are generated.

Have you tried to enable defered debugging [1] ?
If might give you some clues regarding what happens
before the main loop halts.

http://twistedmatrix.com/documents/current/api/twisted.internet.defer.html#setDebugging

cheers,
Senra

http://rodrigo.senra.nom.br




More information about the Twisted-Python mailing list