[Twisted-Python] Debugging Twisted

luper rouch luper.rouch at gmail.com
Mon Feb 23 10:21:34 EST 2009


2009/2/23 Jean-Paul Calderone <exarkun at divmod.com>:
> 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>
>>> wrote:
>>>>
>>>> Jean-Paul Calderone wrote :
>>>>>
>>>>> On Fri, 20 Feb 2009 19:56:54 +0100, Luper Rouch <luper.rouch at gmail.com>
>>>>> wrote:
>>>>>>
>>>>>> 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.
>>>>>
>>>>> Jean-Paul
>>>>
>>>> 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.
>
> Jean-Paul
>

Sorry I had missed TCPClient in the documentation, it works now thanks.

Luper




More information about the Twisted-Python mailing list