Función PHP debug_print_backtrace()
Ejemplo
Imprima un backtrace de PHP:
<?php
function a($txt) {
b("Glenn");
}
function b($txt) {
c("Cleveland");
}
function c($txt) {
debug_print_backtrace();
}
a("Peter");
?>
Definición y uso
La función debug_print_backtrace() imprime un backtrace de PHP.
Esta función muestra datos del código que condujo a la función debug_print_backtrace().
Sintaxis
debug_print_backtrace(options, limit);
Valores paramétricos
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 |
Detalles técnicos
Valor devuelto: | Ninguna |
---|---|
Versión PHP: | 5.0+ |
Registro de cambios de PHP: | PHP 5.4: se agregó el límite de parámetros opcionales PHP 5.3.6: se agregaron las opciones de parámetros opcionales |
Referencia de errores de PHP