in reply to how to set a breakpoint by a code reference
It's not a bug-fix but a temporary hack!
put the following line into a file in your homedir called '.perldb'
$DB::alias{b} = q# s/^b\s+(\$\w+)\s*$/'"b ". DB::CvGV_name('.$1.')'/ee +; #
it creates an alias which intercepts the debuger command b and tries to replace the code-ref with the ANON-name before calling the real command b.
Works for me!
HTH! =)
Could someone with the newest version of the debugger plz check if the bug is still present and if it can be fixed this way?
Well at least the version on cpan seems still to be buggy.
Cheers Rolf
( addicted to the Perl Programming Language)
NB: the Variablename parsing is simplistic things like '::' or _ won't match.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to set a breakpoint by a code reference (workaround)
by Matq (Initiate) on Nov 20, 2013 at 07:46 UTC | |
by LanX (Saint) on Nov 20, 2013 at 12:14 UTC | |
by Matq (Initiate) on Nov 21, 2013 at 03:21 UTC |