php8.5
Home/ Manual/ predefined / throwable/ Throwable::getTrace

Throwable::getTrace

PHP function Edit on GitHub ✎

(PHP 7, PHP 8)

Gets the stack trace

Description

Throwable::getTrace(): array

Returns the stack trace as an array.

Parameters Parameters

Return Values

Returns the stack trace as an array in the same format as debug_backtrace().

See Also

  • Exception::getTrace

Source: language/predefined/throwable/gettrace.xml · from the official PHP manual (php/doc-en)