1 개요[ | ]
- PHP debug_print_backtrace()
- 디버그 역추적 정보를 출력하는 PHP 함수
2 예시: include 구조[ | ]
- a.php
PHP
Copy
<?php
function foo() {
debug_print_backtrace();
}
foo();
- 실행결과
Console
Copy
root@zetawiki:~# php a.php
#0 foo() called at [/root/a.php:5]
- b.php
PHP
Copy
<?php
include 'a.php';
- 실행결과
Console
Copy
root@zetawiki:~# php b.php
#0 foo() called at [/root/a.php:5]
#1 include(/root/a.php) called at [/root/b.php:2]
3 같이 보기[ | ]
4 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.