in reply to Get the number of the current test when debugging a test script
You want a conditional break point. From "perldebug":
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:
b 237 $x > 30 b 237 ++$count237 < 11 b 33 /pattern/iIf the line number is ., sets a breakpoint on the current line:
b . $n > 100
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Get the number of the current test when debugging a test script
by Dumu (Monk) on Jun 30, 2015 at 16:29 UTC | |
by RonW (Parson) on Jun 30, 2015 at 19:18 UTC | |
by Dumu (Monk) on Jul 01, 2015 at 09:49 UTC |