Perrin Harkins wrote:
> On Mon, 2004-10-25 at 15:45, Andy Lester wrote:
>
>>On Mon, Oct 25, 2004 at 03:18:43PM -0400, Perrin Harkins ([EMAIL PROTECTED]) wrote:
>>
>>>If you'd care to expand on that, there might be some people on here who
>>>can help you with it. One thing that often causes problems is that you
>>>have to initialize the debugger before you compile anything in your
>>>startup.pl or you won't get the symbols put in.
>>
>>We don't use a startup.pl. We use PerlModule in the httpd.conf
>
>
> I recommend using startup.pl instead
the issues are similar (but not identical) for Devel::Profiler as those
perrin outlined for Apache::DProf - you need to use a startup.pl or <Perl>
sections because D::P relies on import() which isn't called via PerlModule.
also, with D::P you need to pre-load Registry scripts if you're using them.
so a sample startup.pl would look like this:
use Devel::Profiler::Apache;
# Registry scripts must be pre-loaded in order
# to be seen by the profiler
use Apache::RegistryLoader;
Apache::RegistryLoader->new->handler('perl-bin/foo.pl');
the latest (unreleased) Devel::Profiler on sourceforge has integrated
Apache-Test based tests, so you can steal the configurations from
t/conf/extra.conf.in and t/conf/modperl_extra.pl to get you started.
HTH
--Geoff
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates