PHP debug_print_backtrace() 함수
예시
PHP 역추적 인쇄:
<?php
function a($txt) {
b("Glenn");
}
function b($txt) {
c("Cleveland");
}
function c($txt) {
debug_print_backtrace();
}
a("Peter");
?>
정의 및 사용
debug_print_backtrace() 함수는 PHP 역추적을 인쇄합니다.
이 함수는 debug_print_backtrace() 함수로 이어지는 코드의 데이터를 표시합니다.
통사론
debug_print_backtrace(options, limit);
매개변수 값
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 |
기술적 세부 사항
반환 값: | 없음 |
---|---|
PHP 버전: | 5.0+ |
PHP 변경 로그: | PHP 5.4: 선택적 매개변수 제한 이 추가되었습니다 . PHP 5.3.6: 선택적 매개변수 옵션 이 추가되었습니다 . |
PHP 오류 참조