On 06 Dec 2004, at 06:02, J. D. wrote: > What is the best way to debug fastcgi scripts? > > Do you use Ruby? Expect? Or just deal with 'incomplete header' > messages in the Apache logs? 1) Run the equivalent as a regular CGI, make sure it works. 2) Swear 3) Play with rescue and printing to STDERR until you find the error.