File Coverage

blib/lib/Devel/Trepan/Shell.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             #!/usr/bin/env perl
2             # Copyright (C) 2012, 2014 Rocky Bernstein <rocky@cpan.org>
3             # Documentation is at the __END__
4             package Devel::Trepan::Shell;
5 1     1   21007 use version; $VERSION = '1.5';
  1         1911  
  1         5  
6             "All of the real action is in Devel::Trepan::CmdProcessor::Command::Shell.pm";
7             __END__
8              
9             =pod
10              
11             =head1 NAME
12              
13             An interactive shell command plugin for L<Devel::Trepan>
14              
15             =head1 SUMMARY
16              
17             This adds a "shell" command with alias "re.pl" to the
18             L<Devel::Trepan> debugger, I<trepan.pl>. The command goes into
19             a L<Devel::REPL> shell from inside the debugger.
20              
21             But wait, there's more!
22              
23             This package also contains some L<Devel::REPL> plugins for entering both the
24             Devel::Trepan debugger and the tried-and-true L<perl5db>.
25             debugger, from a I<re.pl> shell:
26              
27             To call the debuggers inside I<re.pl>, first run or put in your
28             I<~/.re.pl/rc.pl> file:
29              
30             $_REPL->load_plugin('Trepan'); # to go into the trepan debugger
31             $_REPL->load_plugin('Perl5db'); # to go into the perl5db debugger
32              
33             And then in your I<re.pl> session:
34              
35             %trepan Perl-expression-or-statement # enter Devel::Trepan debugger
36             %perl5db Perl-expression-or-statement # enter Perl5db
37              
38             =head1 AUTHORS
39              
40             Rocky Bernstein
41              
42             =head1 COPYRIGHT
43              
44             Copyright (C) 2012, 2014 Rocky Bernstein <rocky@cpan.org>
45              
46             This program is distributed WITHOUT ANY WARRANTY, including but not
47             limited to the implied warranties of merchantability or fitness for a
48             particular purpose.
49              
50             The program is free software. You may distribute it and/or modify it
51             under the terms of the GNU General Public License as published by the
52             Free Software Foundation (either version 2 or any later version) and
53             the Perl Artistic License as published by O'Reilly Media, Inc. Please
54             open the files named gpl-2.0.txt and Artistic for a copy of these
55             licenses.
56              
57             =cut