php8.5
Home/ Manual/ reflection / reflectionfiber/ ReflectionFiber::getTrace

ReflectionFiber::getTrace

PHP function Edit on GitHub ✎

(PHP 8 >= 8.1.0)

Get the backtrace of the current execution point

Description

ReflectionFiber::getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT): array

Get the backtrace of the current execution point in the reflected Fiber.

Parameters

options

The value of options can be any of the following flags.

OptionDescription
DEBUG_BACKTRACE_PROVIDE_OBJECTDefault.
DEBUG_BACKTRACE_IGNORE_ARGSDon't include the argument information for functions in the stack trace.

Return Values

The backtrace of the current execution point in the fiber.

Source: reference/reflection/reflectionfiber/gettrace.xml · from the official PHP manual (php/doc-en)