开发者

Debugging python with mod_fastcgi

开发者 https://www.devze.com 2023-03-31 11:00 出处:网络
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

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

精彩评论

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

关注公众号