in reply to bug in the debugger? breakpoints in subroutines ignored if attributes present

How about just moving the code inside 'a' to an attribute-free routine, wlf., and setting the breakpoint on that instead, e.g.
sub a : ATTR(SCALAR) { _a( @_ ); } sub _a { print "a\n"; }
M. Oron D.B.O. (Doctor in the Bl**ding obvious ;))
__________________________________________________________________________________

^M Free your mind!

  • Comment on Re: bug in the debugger? breakpoints in subroutines ignored if attributes present
  • Download Code

Replies are listed 'Best First'.
Re^2: bug in the debugger? breakpoints in subroutines ignored if attributes present
by wu-lee (Beadle) on Apr 23, 2007 at 16:52 UTC
    Thank you, this does work. Unfortunately this makes the resulting code look like a non-sequitur, so I'm not sure I could justify it for the general case.