in reply to how to set a breakpoint by a code reference
I'm not sure where you are getting
from. The doc I see says this, which seems to be the behaviour you are triggering:b $mysubref
That is, you are setting a break point at the current line (because you specify no line) if $mysubref is true.b [line] [condition] Set a breakpoint before the given line. If a condition is specified, it's evaluated each time the statement is reached: a breakpoint is taken only if the condition is true. Breakpoints may only be set on lines that begin an executable statement. Conditions don't use "if":
--
A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |
A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |
|
---|
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:43 UTC | |
by ysth (Canon) on Nov 20, 2013 at 19:50 UTC | |
by LanX (Saint) on Nov 20, 2013 at 20:06 UTC |
In Section
Seekers of Perl Wisdom