[Twisted-Python] How do I run a twisted server directly

Alexander May alex-news at comcast.net
Fri May 14 16:17:19 EDT 2004

Thanks, I'll give that a try.  How about my first question, running it
directly without twistd.  Something along the lines of:

if '__main__' == __name__:
  # do something to start application directly

Thanks again,

-----Original Message-----
From: twisted-python-bounces at twistedmatrix.com
[mailto:twisted-python-bounces at twistedmatrix.com] On Behalf Of Itamar
Sent: Friday, May 14, 2004 4:03 PM
To: Twisted discussion stuff
Subject: Re: [Twisted-Python] How do I run a twisted server directly

On Fri, 2004-05-14 at 15:56, Alexander May wrote:

> And then gets into twistd, which is great.  But I have two questions, 
> one is how do I run this code directly (i.e., without twistd), and how 
> do I use a debugger on code running under twistd.

You can run twistd with -b option to run under debugger (see twistd --help).

Itamar Shtull-Trauring    http://itamarst.org

Twisted-Python mailing list
Twisted-Python at twistedmatrix.com

More information about the Twisted-Python mailing list