PHP debug_print_backtrace() Funksie
Voorbeeld
Druk 'n PHP-terugspoor:
<?php
function a($txt) {
b("Glenn");
}
function b($txt) {
c("Cleveland");
}
function c($txt) {
debug_print_backtrace();
}
a("Peter");
?>
Definisie en gebruik
Die debug_print_backtrace() funksie druk 'n PHP backtrace.
Hierdie funksie vertoon data van die kode wat gelei het tot die debug_print_backtrace() funksie.
Sintaksis
debug_print_backtrace(options, limit);
Parameterwaardes
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 |
Tegniese besonderhede
Terugkeerwaarde: | Geen |
---|---|
PHP weergawe: | 5,0+ |
PHP Changelog: | PHP 5.4: Die opsionele parameter limiet is bygevoeg PHP 5.3.6: Die opsionele parameter opsies is bygevoeg |
PHP Fout Verwysing