Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Debugger's dumper on the command line

by bsb (Priest)
on Mar 25, 2004 at 22:36 UTC ( #339899=snippet: print w/replies, xml ) Need Help??
Description: The "x" command from the debugger conveniently packaged.
$ perl -MDV -e '$x=%x=@x=(2,3); dv(\*x,[1,undef,3])' 0 GLOB(0x80ffe50) -> ${*main::x} = 2 @{*main::x} = ( 0 2 1 3 ) %{*main::x} = ( 2 => 3 ) 1 ARRAY(0x80f5fc4) 0 1 1 undef 2 3
package DV;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw($dv dv);
use Dumpvalue;
$dv = Dumpvalue->new(globPrint => 1,
            DumpReused => 0, 
            printUndef => 1, quoteHighBit => 1,
            subdump => 1  );
sub dv { print $dv->dumpValues(@_) };
1;
Replies are listed 'Best First'.
Re: Debugger's dumper on the command line
by pemungkah (Priest) on Sep 06, 2007 at 04:03 UTC
    Oh nice. I will be using this. Thanks.
Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: snippet [id://339899]
help
Chatterbox?
[Corion]: I think I saw virtualsue more recently in person than online :-D
[virtualsue]: It's true that there was a bigger gap between the 2 yr old post and the one before it
[ambrus]: yes, I probably just didn't see you two years ago, because I'm not in perlmonks much
[virtualsue]: Nor am I :-)
[talexb]: virtualsue Heh .. long time no see! :)
[virtualsue]: I have a quiet Perl themed slack workspace
[virtualsue]: The person who talks to me on it the most *hates* Perl but she hates everything

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2017-09-26 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (295 votes). Check out past polls.

    Notices?