1

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

Meir
  • 205
  • 3
  • 8

1 Answers1

0

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.

Community
  • 1
  • 1
Dhaivat Pandya
  • 6,499
  • 4
  • 29
  • 43