← All docs

debug_print_backtrace()

Prints a PHP backtrace for the active call stack.

debug_print_backtrace()

function debug_print_backtrace(int $options = 0, int $limit = 0): void

Prints a PHP backtrace for the active call stack.

Parameters:

  • $options (int), default 0, optional
  • $limit (int), default 0, optional

Returns: void

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how debug_print_backtrace is implemented in the compiler, see the internals page.