[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Template and interpolation


On Fri, 22 Apr 2005, Michael Peters <suppressed> wrote:

RA Jones wrote:
[..]

Many, many people have used TT and C::A under mod_perl, and
statistically, some of them were probably using windows. I don't think
it's that combination.

To figure it out, you might have to get your hands dirty and step
through the debugger under mod_perl.

This might help:
http://perl.apache.org/docs/1.0/guide/debug.html#Introduction_to_the_Per
l_Debugger

So far not so good. The script runs OK from a cmd window as perl -d myapp.pl, rendering the full html from the template, including the header. This was the same template that caused the 'Document contained no data' error when run via the browser under mod_perl.

The step and trace commands did not seem very useful as there were many hundreds of lines of script displayed as it traced through all the modules. The perl -d:ptkdb option also looks interesting, but again it ends up printing the full template html out to a command window.

But from what I have read so far it seems I needed to set an Apache config option to use Apache::DB if started with IfDefine PERLDB. So I have done this and the Apache error log confirms this as the last line is DB<1>. Now if I try to run the application in the browser I get the 'loading' icon permanently revolving, and it seems like it is waiting for me to step through the commands in a terminal window. But I don't know how to do this in Windows. I also get an error in the Apache error log: 'GetConsoleMode failed, LastError=|6| at C:/usr/local/site/lib//Term/ReadKey.pm line 268.' I don't know if this is significant.

I'm not really convinced I'm testing my apps under Apache/mod_perl when run from the command line like this anyway. Help anyone?
--
Richard Jones
Leeds, UK
mailto:suppressed

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.