Devel-ModuleBreaker

 view release on metacpan or  search on metacpan

lib/Devel/FileBreaker.pm  view on Meta::CPAN

33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
This module was inspired by a
L<StackOverflow question|https://stackoverflow.com/q/48229672/168657>.
 
=head1 USAGE
 
To use this module, pass this command-line argument to C<perl>
 
    -d:FileBreaker=pattern[,pattern2[,...]]
 
where C<pattern>, C<pattern2>, etc. are any valid perl regular expressions.
In the L<< C<CHECK> phase|perlmod/"BEGIN,-UNITCHECK,-CHECK,-INIT-and-END" >>
of the program, a breakpoint will be set at the start of any subroutine
defined in a file name (given by the values of
L<< C<%DB::sub>|DB/"%DB::sub" >>) that matches one of the given regular expressions.
This includes any anonymous subroutines defined in the files
that are known at compile time.
 
=head2 EXAMPLES
 
=over 4

lib/Devel/ModuleBreaker.pm  view on Meta::CPAN

76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
    PERL5DBX='BEGIN{require "myperl5db.pl"}' perl -d:ModuleBreaker=Module1 myscript.pl
 
 
=head1 USAGE
 
To use this module, pass this command-line argument to C<perl>
 
    -d:ModuleBreaker=pattern[,pattern2[,...]]
 
where C<pattern>, C<pattern2>, etc. are any valid perl regular expressions.
In the L<< C<CHECK> phase|perlmod/"BEGIN,-UNITCHECK,-CHECK,-INIT-and-END" >>
of the program, a breakpoint will be set at the start of any subroutine
whose fully qualified subroutine name (given by
L<< C<%DB::sub>|DB/"%DB::sub" >>) matches one of the given regular expressions.
This includes anonymous subroutines that are known at compile time.
 
=head2 EXAMPLES
 
=over 4
 
=item * Set a breakpoint in all subs just in module C<Floop::Blert>:

lib/Devel/SubBreaker.pm  view on Meta::CPAN

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
This module was inspired by a
L<StackOverflow question|https://stackoverflow.com/q/48229672/168657>.
 
=head1 USAGE
 
To use this module, pass this command-line argument to C<perl>
 
    -d:SubBreaker=pattern[,pattern2[,...]]
 
where C<pattern>, C<pattern2>, etc. are any valid perl regular expressions.
In the L<< C<CHECK> phase|perlmod/"BEGIN,-UNITCHECK,-CHECK,-INIT-and-END" >>
of the program, a breakpoint will be set at the start of any subroutine
whose fully qualified subroutine name (given by
L<< C<%DB::sub>|DB/"%DB::sub" >>) matches one of the given regular expressions.
This includes anonymous subroutines that are known at compile time.
 
=head2 EXAMPLES
 
=over 4
 
=item * Set a breakpoint in all subs in module C<Floop::Blert> and all



( run in 0.290 second using v1.01-cache-2.11-cpan-bb97c1e446a )