saintmike has asked for the wisdom of the Perl Monks concerning the following question:
is there a way in line 1 (or 3) to set a watch point in the debugger so that whenever %hash is referenced somehow (for reading or writing), the debugger stops?1: my %hash = (a => 'b'); # Watch %hash 2: 3: my $ref = \%hash; # Breakpoint! 4: ### ... some code ... 5: my $otherref = \%hash; # Breakpoint! 6: my $yetanotherref = $otherref; # Breakpoint!
Or is there a way to say "whenever you reference HASH(0x81049b0), let the debugger stop"?
Any help apprechiated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to watch a reference in the debugger?
by Old_Gray_Bear (Bishop) on Jun 06, 2004 at 18:50 UTC | |
|
Re: How to watch a reference in the debugger?
by ambrus (Abbot) on Jun 06, 2004 at 19:14 UTC |