Home  >  Article  >  Backend Development  >  如何输出php代码运行时调用了那个类、那个方法呢

如何输出php代码运行时调用了那个类、那个方法呢

WBOY
WBOYOriginal
2016-06-13 13:51:41884browse

怎么输出php代码运行时调用了那个类、那个方法呢?
比如:从入口文件开始,一直到一个操作结束的,用了哪些类,哪些方法等。
1.就是从一个入口文件开始,运行期间使用了哪些类、哪些方法、怎么获得。有没有获取这些信息的方法或函数?
2.因为有些包太大了,分支太多,不好分析走了那一步,如果能得到这些信息就可以很快能分析出代码流程?
谢谢各位,是个新手 !所以找类,找方法,有点慢,想问问这类办法。

------解决方案--------------------
楼主用的什么框架。。CI是有配置的。。
config/config.php
$config['log_threshold'] = 2;
即可看到所有调试信息。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn