develooper Front page | perl.perl5.porters | Postings from April 2011

[PATCH] Add "b <filename>:<line> <cond>" to perl -d

Thread Next
Shlomi Fish
April 17, 2011 10:32
[PATCH] Add "b <filename>:<line> <cond>" to perl -d
Message ID:
Hi all!

This link - is a github branch that contains a set of 
some commits to add this to perl -d :


=item b [file]:[line] [condition]
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 
on lines that begin an executable statement.  Conditions don't use C<if>:

    b lib/ $x > 30
    b /usr/lib/perl5/site_perl/ ++$count100 < 11


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 / (or any later version) / 
MIT-X11 / GPLv1+ / Artistic 1.0 / Artistic 2.0 (and above) / or the licence of 
your choice.


	Shlomi Fish

Shlomi Fish
List of Portability Libraries -

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 - .

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About