PHP debug_print_backtrace() Funzione
Esempio
Stampa un backtrace PHP:
<?php
function a($txt) {
b("Glenn");
}
function b($txt) {
c("Cleveland");
}
function c($txt) {
debug_print_backtrace();
}
a("Peter");
?>
Definizione e utilizzo
La funzione debug_print_backtrace() stampa un backtrace PHP.
Questa funzione visualizza i dati dal codice che ha portato alla funzione debug_print_backtrace().
Sintassi
debug_print_backtrace(options, limit);
Valori dei parametri
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 |
Dettagli tecnici
Valore di ritorno: | Nessuno |
---|---|
Versione PHP: | 5.0+ |
Registro delle modifiche PHP: | PHP 5.4: è stato aggiunto il limite di parametri opzionali PHP 5.3.6: sono state aggiunte le opzioni di parametri opzionali |
Riferimento errore PHP