/
README
53 lines (38 loc) · 1.32 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
NAME
Devel::SubTrace - simple debugger that just prints out sub calls
SYNOPSIS
perl -d:SubTrace synopsis.pl
> main::foo (t/synopsis.pl line 3)
--> main::bar (t/synopsis.pl line 6)
----> main::baz (t/synopsis.pl line 11)
--> main::baz (t/synopsis.pl line 7)
cat synopsis.pl
#!/usr/bin/perl
foo();
sub foo {
bar();
baz();
}
sub bar {
baz();
}
sub baz {}
DESCRIPTION
Simple 'debugger' that prints out each subroutine name when it's called
(and the file and line it was called from) to STDERR.
AUTHOR
Written by Mark Fowler <mark@twoshortplanks.com>
COPYRIGHT
Copyright OmniTI 2012. All Rights Rerserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
BUGS
Bugs should be reported via this distribution's CPAN RT queue. This can
be found at <https://rt.cpan.org/Dist/Display.html?Devel-SubTrace>
You can also address issues by forking this distribution on github and
sending pull requests. It can be found at
<http://github.com/2shortplanks/Devel-SubTrace>
SEE ALSO
Devel::Trace - print every line that is executed
Devel::TraceSubs - hook all subs in a namespace with lexwrap and add
debugging when executed