title: How does one debug a fastcgi application?
body: <p>How does one debug a FastCGI application?  I've got an app that's dying but I can't figure out why, even though it's likely throwing a stack trace on stderr.  Running it from the commandline results in an error saying: </p>
  
  <pre><code>RuntimeError: No FastCGI Environment: 88 - Socket operation on non-socket
  </code></pre>
  
  <p>How do I set up a 'FastCGI Environtment' for debugging purposes?  It's not my app - it's a 3rd party open source app - so I'd rather avoid adding in a bunch of logging to figure out what's going wrong.</p>
  
  <p>If it matters, the app is Python, but FastCGI is FastCGI, right?  Is there a shim or something to let you invoke a fastcgi program from the commandline and hook it up to the terminal so you can see its stdout/stderr?</p>