Print PHP Call Stack

前端 未结 15 1673
清歌不尽
清歌不尽 2020-11-27 09:08

I\'m looking for a way to print the call stack in PHP.

Bonus points if the function flushes the IO buffer.

15条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-27 09:20

    See debug_print_backtrace. I guess you can call flush afterwards if you want.

提交回复
热议问题