Menu Riverview Church

DEBUG_PRINT_BACKTRACE

Prints a backtrace

SYNTAX

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

PARAMETERS

options

A bitmask for the following options:

DEBUG_BACKTRACE_PROVIDE_OBJECT Whether or not to populate the "object" index.
DEBUG_BACKTRACE_IGNORE_ARGS Whether or not to omit the "args" index, and thus all the function/method arguments, to save memory.
limit

Limit the number of stack frames printed. By default (limit=0) it prints all stack frames.

RETURN

No value is returned.

EXAMPLES

VOID

#0 myfunction2(2, 3) called at [/home/user/public_html/file.php:8]
#1 myfunction1(1, 2) called at [/home/user/public_html/file.php:18]

OPTIONS | DEBUG_BACKTRACE_PROVIDE_OBJECT

#0 myfunction2(2, 3) called at [/home/user/public_html/file.php:8]
#1 myfunction1(1, 2) called at [/home/user/public_html/file.php:20]

OPTIONS | DEBUG_BACKTRACE_IGNORE_ARGS

#0 myfunction2() called at [/home/user/public_html/file.php:8]
#1 myfunction1() called at [/home/user/public_html/file.php:20]

LIMIT

#0 myfunction2(2, 3) called at [/home/user/public_html/file.php:8]

PHP