PHP debug_print_backtrace() Function

The debug_print_backtrace() function prints a PHP backtrace.

This function displays data from the code that led up to the debug_print_backtrace() function.

Example -

The above code will output something like this:

Definition and Usage

The debug_print_backtrace() function prints a PHP backtrace.

This function displays data from the code that led up to the debug_print_backtrace() function.

ParameterDescription
optionsOptional. Specifies a bitmask for the following option: DEBUG_BACKTRACE_IGNORE_ARGS (Whether or not to omit the "args" index, and all the function/method arguments, to save memory)
limitOptional. Limits the number of stack frames printed. By default (limit=0) it prints all stack frames