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.
精彩评论