PHP debug_print_backtrace() Function

PHP debug_print_backtrace Function


Definition : 

The debug_print_backtrace is inbuilt function in php.The debug_print_backtrace() function is used to prints a PHP backtrace and also  displays data from the code that led up to the debug_print_backtrace() function.

Syntax

  debug_print_backtrace(options, limit);

Parameter 
Parameter Description
options Optional. 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)
limit Optional. Limits the number of stack frames printed. By default (limit=0) it prints all stack frames

Given below example use of debug_print_backtrace() :

Output :