should this get applied already?


Shlomi Fish

---------- Forwarded Message ----------

Subject: [PATCH] Add "b <filename>:<line> <cond>" to perl -d
Date: Sunday 17 Apr 2011, 20:31:52
From: Shlomi Fish <shlomif@iglu.org.il>
To: Perl5 Porters <perl5-porters@perl.org>

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 :


=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/MyModule.pm:237 $x > 30
b /usr/lib/perl5/site_perl/CGI.pm:100 ++$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 /
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.


Shlomi Fish

Shlomi Fish http://www.shlomifish.org/
Freecell Solver - http://fc-solve.berlios.de/

E-mail, web feeds, and doing something productive - choose two.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupperl5-porters @
postedJun 7, '11 at 12:22p
activeJun 7, '11 at 3:36p



site design / logo © 2021 Grokbase