# -*- coding: utf-8 -*-
#!/usr/bin/env python
from twisted.scripts.twistd import run
import os
import sys
try:
os.unlink('twistd.pid')
except OSError:
pass
run()
我采用的是wing IDE, 可以将该文件设置为Debug的默认启动文件,然后右键点击其属性,添加调试辅助命令,比如 -noy ***.tac 等。
#!/usr/bin/env python
from twisted.scripts.twistd import run
import os
import sys
try:
os.unlink('twistd.pid')
except OSError:
pass
run()
我采用的是wing IDE, 可以将该文件设置为Debug的默认启动文件,然后右键点击其属性,添加调试辅助命令,比如 -noy ***.tac 等。