The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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 or the edit command.

Examples:

 backtrace    # Print a full stack trace
 backtrace 2  # Print only the top two entries