On Tue, Sep 25, 2001 at 01:02:18AM +0800, Stas Bekman wrote:
> Philippe M . Chiasson wrote:
>
> > On Mon, Sep 24, 2001 at 11:48:44PM +0800, Stas Bekman wrote:
> >
> >>Where do we put debug functions? debugger doesn't really help in dumping
> >>complicated data structures like apr_table_t.
>
> >>I guess I can also think of .gdbinit macro to do the same or even based
> >>on this function.
> >>
> >
> > How about stuffing them all in modperl_debug.[hc] and make sure all call
> > to stuff in there is wrapped in a DEBUG() macro ? That way, all that stuff
> > goes in when MP_DEBUG=1, but vanishes otherwise.
>
> +1 for modperl_debug.[hc]
>
> -1 for leaving debug prints around.
>
> We already have debug functionality you are talking about using the
> tracing facility, which you can configure on and off for very specific
> modes only. So no need for DEBUG.
Sorry, thought MP_DEBUG==MP_TRACE.
>
> I'm talking here about having a set of helper functions, that do things
> like Data::Dumper, per my example function I've sent, to be used mainly
> during development, when it's not easy to look at complicated structures
> and similar.
I was only saying that if they are things that should only really be needed
when developing/hacking at mod_perl, it would be nice to be able not to have
them at all if you don't need them (by default)
> _____________________________________________________________________
> Stas Bekman JAm_pH -- Just Another mod_perl Hacker
> http://stason.org/ mod_perl Guide http://perl.apache.org/guide
> mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/
> http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
>
>
--
+----------------------------------------------------+
| Philippe M. Chiasson <[EMAIL PROTECTED]> |
+----------------------------------------------------+
| F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3 A5A5 |
+----------------------------------------------------+
gethostent not implemented : Your C library apparently
doesn't implement gethostent(), probably because if it did,
it'd feel morally obligated to return every hostname on the
Internet.
-- perldiag(1)
perl -e '$$=\${gozer};{$_=unpack(P26,pack(L,$$));/^Just Another Perl
Hacker!\n$/&&print||$$++&&redo}'
PGP signature