开发者

Debugging python with mod_fastcgi

I 开发者_开发问答running apache with mod_fastcgi to run python scripts (using Ubuntu OS).

How can I debug python with fastcgi? I put a pdb.set_trace() call in my script, but when loading the page in a browser nothing happens in the console from which I ran the apache start command (/etc/init.d/apache2 start). Where should the python debugger run??

Dan


You have to attach pdb to a running instance of your FCGI script, read this for a How To.

This information is also stated in the FCGI FAQ.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜