On Sat, 21 Feb 2004, John Siracusa wrote:

> On 2/21/04 4:33 PM, Dave Rolsky wrote:
> > On Sat, 21 Feb 2004, John Siracusa wrote:
> >> Speaking of difficult debugging and DT, every time I feed something to
> >> Data::Dumper that contains a DT object (or several) I cringe at the giant
> >> output.  I don't suppose there's any way to avoid that...
> >
> > Nothing springs to mind, other than adding hooks to Data::Dumper ala
> > Storable.  But that would somewhat defeat the purpose of Data::Dumper,
> > wouldn't it?
>
> For eval-ing purposes, sure.  But if you're using it for debugging to "look
> inside" objects and whatnot, you don't need to see all that stuff.  Yeah,
> Storable-like hooks would be nice.  Maybe Perl 5.10's Data::Dumper will
> support them :)

I think the problem is that Data::Dumper has historically had two
orthogonal uses.  One was serializing data structures for persistence, ala
Storable, and the other was for debugging.

Nowadays, I'm guessing most people use Storable for the first, and so it's
probably used more for debugging.  But just dumping the structure as is
may not be ideal for debugging.

So I suspect what we really need is something like Data::DebugDumper or
something like that, which is _only_ used for debugging.  Is there already
something on CPAN that might be suitable for this?

But this is way OT for this list.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to