in reply to Re: Make debugger break on source lines matching a pattern
in thread Make debugger break on source lines matching a pattern
I had the same thought about overriding "print" but that's one of the core ops that it won't work for, since there's no prototype letting the parser treat it like a sub. (And there's no CORE::print to break on either).
Possible to completely hack a solution along the lines of perl -pi.bak -e "s/\bprint\b/$DB_single=1;\nprint/" or do something exceedingly clever with B::Util- though simply adding a few breakpoints by hand will do all I need to do with far less room for making things worse!
ps. thanks for the link to obsidianrook, I always enjoy those presentations!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Make debugger break on source lines matching a pattern
by LanX (Saint) on Jan 11, 2014 at 21:07 UTC |