PHP - I want to know how to get function trace

给你一囗甜甜゛ 提交于 2019-12-20 07:22:09

问题


Is there any way to know all previous functions were called before a point in my code? For example: I set a point in abc.php in my project, and I want to get all functions that were called before that point was reached. debug_backtrace() does not help here. Thanks so much :)


回答1:


xdebug can generate function traces for you. See: http://xdebug.org/docs/execution_trace




回答2:


use xdebug it will show trace and much more useful info




回答3:


Use xdebug for trace and webgrind for vizualization this one.



来源:https://stackoverflow.com/questions/6758486/php-i-want-to-know-how-to-get-function-trace

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!