PHP debug print backtrace()

Jmnote (토론 | 기여)님의 2019년 12월 11일 (수) 11:29 판 (→‎참고)

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 }}