Twisted调试的启动代码
# -*- coding: utf-8 -*-#!/usr/bin/env pythonfrom twisted.scripts.twistd import runimport osimport systry: os.unlink('twistd.pid')except OSError: passrun()我采用的是wing IDE, 可以将该文件设置为Debug的默认启动文件,然后右键点击其属性,添加调试辅助命令,比如 -noy ***.tac 等。
页:
[1]