Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > How to dump all (lexical) variables?

Reply
Thread Tools

How to dump all (lexical) variables?

 
 
kj
Guest
Posts: n/a
 
      09-29-2009



I have a long-running program that fails sporadically at a particular
point in its execution. This is a "controlled failure", because
it is due to an assertion that is unexpectedly failing to hold.
To debug this, it would be really helpful if I could dump the values
of all the current variables (especially the lexical ones that are
"visible" at the point of failure) right before the program aborts.

Is there an simple way to do this?

TIA!

kynn
 
Reply With Quote
 
 
 
 
Peter Makholm
Guest
Posts: n/a
 
      09-29-2009
kj <> writes:

> To debug this, it would be really helpful if I could dump the values
> of all the current variables (especially the lexical ones that are
> "visible" at the point of failure) right before the program aborts.


The peek_my function from the PadWalker module might do what you want.

//Makholm
 
Reply With Quote
 
 
 
 
kj
Guest
Posts: n/a
 
      09-29-2009
In <> Peter Makholm <> writes:

>kj <> writes:


>> To debug this, it would be really helpful if I could dump the values
>> of all the current variables (especially the lexical ones that are
>> "visible" at the point of failure) right before the program aborts.


>The peek_my function from the PadWalker module might do what you want.


Looks handy. Thanks!

kynn
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Dump complete java VM state as core dump (not via OS) possible? halfdog Java 12 02-21-2013 06:14 AM
![Oof Topix] All McCain, All Flip-Flop, All the Time Bucky Breeder Computer Support 7 09-27-2008 03:33 PM
Dump Of Phisical Memory???Uhh whats all that about roscopeecoaltrain Computer Support 15 09-29-2006 07:42 AM
filter that dump all the https request /response iexpl Java 2 01-14-2004 11:54 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57