backtrace [count]
Print a stack trace, with the most recent frame at the top. With a positive number, print at most many entries.
In the listing produced, an arrow, -->, indicates the 'current frame'. The current frame determines the context used for many debugger commands such as source-line listing (list or the edit command.
-->
list
edit
backtrace # Print a full stack trace backtrace 2 # Print only the top two entries
To install Devel::Trepan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Trepan
CPAN shell
perl -MCPAN -e shell install Devel::Trepan
For more information on module installation, please visit the detailed CPAN module installation guide.