PHP debug print backtrace()

1 개요[ | ]

PHP debug_print_backtrace()
  • 디버그 역추적 정보를 출력하는 PHP 함수

2 예시: include 구조[ | ]

a.php
<?php
function foo() {
	debug_print_backtrace();
}
foo();
실행결과
root@zetawiki:~# php a.php
#0  foo() called at [/root/a.php:5]
b.php
<?php
include 'a.php';
실행결과
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 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}