Od - Debug a Perl Compiler backend
perl -d -MOd=Backend[,OPTIONS] foo.pl Od::CODE(0x154c5a0)((eval 9)[lib/Od.pm:33]:25): 25: &$compile(); DB<1> s B::C::CODE(0x12c0aa0)(lib/B/C.pm:3163): 3163: return sub { save_main() }; DB<1> s B::C::save_main(lib/B/C.pm:2881): 2881: my $warner = $SIG{__WARN__};
This module is a debugging replacement to O, the Perl Compiler frontend, a source level debugger to step through a compiler.
It delays the start of the B compiler compile function from the CHECK block to the INIT block, so that the Perl debugger can be started there.
compile
Note that Od handles the given options correctly, but does not step through the option handler. See Od_o to step-through the option handling part.
Reini Urban, rurban@cpan.org 2009
rurban@cpan.org
To install B::Debugger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm B::Debugger
CPAN shell
perl -MCPAN -e shell install B::Debugger
For more information on module installation, please visit the detailed CPAN module installation guide.