Steve Hay wrote: [...]
I'm not sure I understand your point. I'm aware that that you can write '<:APR' without loading any module yourself and Perl will take care of it for you. Fine. But the PerlIO manpage says that the module that will be loaded for you is, in this case, PerlIO::APR. I don't see any such module -- there is an APR::PerlIO, but no PerlIO::APR.
it can be named in any way you want, since what matters is how the module registers its layer name. Since this is not a standalone module but an interface to APR:: it's called APR::PerlIO.
You need to poke in xs/APR/PerlIO/apr_perlio.c most likely inside: PerlIOAPR_read
however there is also the tracing option, before you try to step through with debugger. Try running the test with the 'o' option (o == IO):
env MOD_PERL_TRACE=o t/TEST -v apr/perlio
also you probably want to comment out the rest of the sub-tests in that file so they won't stand on your way.
[After rebuilding mp2 with MP_TRACE=1, which I didn't at first realise I needed to do!...]
This doesn't seem to produce any debug at all, other than a short dump of what the trace options are (confirming that I/O is selected).
Weird. There is an MP_TRACE_o() call in PerlIOAPR_read(). I can walk through it in the debugger -- it *does* call modperl_trace() and apparently write stuff out, but it never appears in the error_log.
Can you step through to the write and see why it doesn't show up in the error_log file?
Do other folks have any success using MOD_PERL_TRACE=o on Win32?
May be the whole tracing is not working on win32? Can you trace other things? e.g. =f for filters? See:
http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlTrace_
I think Randy has reported successful tracing before.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
