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), default0, optional$limit(int), default0, optional
Returns: void
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/core/debug_print_backtrace.rs).
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.