PHP debug_print_backtrace() Funkcja
Przykład
Wydrukuj ślad PHP:
<?php
function a($txt) {
b("Glenn");
}
function b($txt) {
c("Cleveland");
}
function c($txt) {
debug_print_backtrace();
}
a("Peter");
?>
Definicja i użycie
Funkcja debug_print_backtrace() drukuje ślad wsteczny PHP.
Ta funkcja wyświetla dane z kodu, który doprowadził do funkcji debug_print_backtrace().
Składnia
debug_print_backtrace(options, limit);
Wartości parametrów
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 |
Szczegóły techniczne
Wartość zwrotu: | Nic |
---|---|
Wersja PHP: | 5.0+ |
Dziennik zmian PHP: | PHP 5.4: Dodano opcjonalny limit parametrów PHP 5.3.6: Dodano opcjonalne opcje parametrów |
Odniesienie do błędów PHP