in reply to how to set a breakpoint by a code reference
from perldebug
b subname [condition] Set a breakpoint before the first line of the named subroutine. subnam +e may be a variable containing a code reference (in this case conditi +on is not supported).
And you are not the first one noticing it, see this thread from 2008: b $var
IMHO the watch expression you get shown from L looks weird...probably a bug!
I'll try to dig later a little bit into the source code of perl5db.pl trying to better understand what is happening.
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to set a breakpoint by a code reference
by Matq (Initiate) on Nov 19, 2013 at 01:57 UTC | |
by LanX (Saint) on Nov 19, 2013 at 02:47 UTC |