Print PHP Call Stack

前端 未结 15 1633
清歌不尽
清歌不尽 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:28

    Walltearer's solution is excellent, particularly if enclosed in a 'pre' tag:

    
    

    - which sets out the calls on separate lines, neatly numbered

提交回复
热议问题