Documentation for method backtrace

Documentation for method backtrace, assembled from the following types:

class Exception

From Exception

(Exception) method backtrace

Defined as:

method backtrace(Exception:D: --> Backtrace:D)

Returns the backtrace associated with the exception. Only makes sense on exceptions that have been thrown at least once.

try die "Something bad happened";
if ($!{
    say $!.backtrace;
}