如何追踪PHP错误? [英] How to trace PHP errors?

查看:377
本文介绍了如何追踪PHP错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误:

[23-Feb-2011 19:51:29] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 512 bytes) in /obj/class.db.php on line 60

我的问题是我不知道这个错误发生在哪里。 class.db.php的第60行是我的应用程序(Database Read()函数中最常用的函数之一)。

My problem is that I don't know where this error happens. Line 60 of class.db.php is one of the most used functions in my application (Database Read() function).

如何追溯这个错误发生的地方从?

How can I trace back where this error originates from?

推荐答案

您可以尝试使用 http://www.xdebug.org/

这篇关于如何追踪PHP错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆