Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3783803
By: sfamix
The Twisted networking-framework comes with a 'manager', a frontend to launch
Twisted applications, called 'twistd.py'. It takes care of many things (such
as demonization) and acts as sort of a container around the Twisted application
one wrote.
The 'twistd' needs a '.tac' file, which is a Python script with that extension,
and sort of a warm-up code to your actual application, containing basic
default-preferences, some module definitions, entry functions, etc.
The typical way to run such an application would be:
python.exe twistd.py -y myApplication.tac
I want to debug such an application.
PyDev reports this string for the debugger:
C:\Python24\python.exe -u C:\Python24\scripts\twistd.py -y
E:\eclipse\plugins\org.python.pydev.debug_1.1.0\pysrc\pydevd.py --type python
--client localhost --port 0 --file
F:\workspace\HorNETserver\src\hornet\virtual.py
I get a failure with this:
C:\Python24\scripts\twistd.py: option --type not recognized
So, somehow the twistd grabs the arguments for the python debugger and tries
to evaluate them. Of course, this leads to an error.
Any ideas anyone ?
Thanks.
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649
|