diff options
author | Shlomi Fish <shlomif@iglu.org.il> | 2011-06-15 21:46:16 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-06-15 21:53:19 -0700 |
commit | 076b743fc5f369c78306040642d57f05f84f6dba (patch) | |
tree | 834fa4eecaff325cbb95e1a6197b999bb0a22783 /pod/perldebug.pod | |
parent | 2211a10b908f0f844bed2deea3745c72b54d2f2f (diff) | |
download | perl-076b743fc5f369c78306040642d57f05f84f6dba.tar.gz |
Break upon <filename>:<line>
Diffstat (limited to 'pod/perldebug.pod')
-rw-r--r-- | pod/perldebug.pod | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pod/perldebug.pod b/pod/perldebug.pod index 59b0ab7d18..d44ca149d6 100644 --- a/pod/perldebug.pod +++ b/pod/perldebug.pod @@ -301,6 +301,18 @@ don't use C<if>: b 237 ++$count237 < 11 b 33 /pattern/i +=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 + =item b subname [condition] X<breakpoint> X<debugger command, b> |