[Twisted-Python] Debugging Twisted

Jean-Paul Calderone exarkun at divmod.com
Mon Feb 23 09:14:18 EST 2009

On Mon, 23 Feb 2009 15:11:15 +0100, Luper Rouch <luper.rouch at gmail.com> wrote:
>Jean-Paul Calderone a écrit :
>>On Fri, 20 Feb 2009 20:15:02 +0100, Luper Rouch <luper.rouch at gmail.com> 
>>>Jean-Paul Calderone wrote :
>>>>On Fri, 20 Feb 2009 19:56:54 +0100, Luper Rouch <luper.rouch at gmail.com> 
>>>>>I would like to investigate on the conch error I mentionned in my 
>>>>>previous message ("KeyError when an errback is triggered within a conch 
>>>>>TCP tunnel").
>>>>>My problem is Twisted catches the exceptions and the debugger won't stop 
>>>>>on them, how could I avoid that ? Is there a "debug" reactor ?
>>>>Try the --debug option to twistd.
>>>My application is a client, how can I run it with twistd ?
>>See http://twistedmatrix.com/projects/core/documentation/howto/tap.html
>Sorry but I don't understand how to run a _client_ application using twistd, 
>I know how to create servers, but the code I would like to debug only uses 
>conch to connect to a SSH server (OpenSSH, not Twisted).

There is no significant difference between servers and clients in this
respect.  If you know how to create a server, you know how to create a
client - just use the client APIs instead of the server APIs.


More information about the Twisted-Python mailing list