backtrace
ErrorsCollection

backtrace

Synthesised documentation from type/Exception

From type/Exception

See Original text in context

method backtrace(Exception:D:)

Returns the backtrace associated with the exception in a Backtrace object or an empty string if there is none. Only makes sense on exceptions that have been thrown at least once.

try die "Something bad happened";
with $! { .backtrace.print ; }