Re: Debugging remotely with Apache2, FastCGI and Perl

Sam Vilain <sam-s9IUA/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
On Wed, 2005-09-07 at 09:44 +0100, Shane De Jager wrote:
> Hi guys,I'm
>  trying to debug my fastCGI applications like I did when they were regular CGI. But when I use the -d switch in the shebang Apache throws an error.
> 
> [Wed Aug 17 10:36:21 2005] [notice] Child 1516: Starting 250 worker threads.
[...]
> Is there an issue with Apache and debugging CGI. It debugs fine when when when runing from the command prompt.

Shane,

Debugging FastCGI applications can be a lot simpler than regular CGI
applications.

One trick is to use the "External" mode of FastCGI, as in
FastCGIExternalServer.  That way, the server program is started
separately from the web server, so you can start it in a shell using
perl -d.

That way, you can still test the request coming in via the web server -
but gain the convenience of using a debugger that you are familiar with,
without involving special execution modes etc.

HTH,
Sam.

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.