gpt4 book ai didi

php - 如何在 PHP 中跟踪程序的每个 "step"?

转载 作者:搜寻专家 更新时间:2023-10-31 21:44:25 26 4
gpt4 key购买 nike

例如,在我的 error_log 中,它是这样写的:

Error... require, include, a_function, another_function

基本上它跟踪程序的每个步骤。为了调试目的,我想实现这样的东西。我如何在 PHP 中“跟踪”程序的执行情况?

最佳答案

你需要debug_backtrace()和定制error handler

关于php - 如何在 PHP 中跟踪程序的每个 "step"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6209873/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com