Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (38 sloc) 1.32 KB
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
Something went wrong with that request. Please try again.