php - 记录功能执行的所有细节?
问题描述
例如:有一个如下所示的函数:
public function something(string $fnStrArgument, int $fnIntArgument) : void
{
$this->aFunction($fnStrArgument);
$this->anotherFunction($fnIntArgument);
}
是否有标准或反射方法可以让我学习“something()”在执行时使用了这些函数?
例如。
Format:
$this->something function executed with =>
aFunction with argument(s) < $fnStrArgument value >
anotherFunction with argument(s) < $fnIntArgument value >
我的请求听起来像是回溯,但我想知道如何正确执行此操作?我只想了解如何记录上面给出的方法执行。不管怎么说,还是要谢谢你。
解决方案
推荐阅读
- javascript - 如何创建水平老虎机效果?
- javascript - nodejs require 一个文件可以需要一个已经被它需要的文件吗?
- autodesk-forge - 如何检索特定 Fusion Teams 项目中用户的电子邮件?
- git - 确定包含来自(功能)分支的拉取请求
- javascript - 是否可以获取缩放或其他缩放相关参数的状态更改,以便在 Highcharts 中动态设置 tickInterval?
- mongodb - Mongo ID 到 Meteor Mongo ID
- typescript - 两个属性名称之一
- wordpress - 产品编辑页面需要大量时间才能加载
- javascript - 如何动态识别由使用 JSX 图形绘制的多边形中的线形成的区域
- angular - 列表的Java地图(地图
>) 到 Angular