Hi all!
This link - http://xrl.us/bjrpd2 is a github branch that contains a set of
some commits to add this to perl -d :
<POD>
=item b [file]:[line] [condition]
X<breakpoint>
X<debugger command, b>
Set a breakpoint before the given line in a (possibly different) file. 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 C<if>:
b lib/MyModule.pm:237 $x > 30
b /usr/lib/perl5/site_perl/CGI.pm:100 ++$count100 < 11
</POD>
I promised this earlier and I did not completely forget about it.
I don't expect it to get in before perl-5.14.0 is, but it's there if anyone is
interested. Some of the "make test" fail but it seems to be a problem with
t/porting/cmp_version.t .
I hereby place my modifications in the public domain /
http://creativecommons.org/publicdomain/zero/1.0/ (or any later version) /
MIT-X11 / GPLv1+ / Artistic 1.0 / Artistic 2.0 (and above) / or the licence of
your choice.
Regards,
Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
List of Portability Libraries - http://shlom.in/port-libs
He who re-invents the wheel will likely design a square wheel and spend a year
trying to figure out why it doesn't work properly. -- Nadav Har'El
Please reply to list if it's a mailing list post - http://shlom.in/reply .
Thread Next