Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to trace PHP errors?

I get the following error:

[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

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?

like image 585
Norwald2 Avatar asked Feb 25 '23 00:02

Norwald2


1 Answers

You can try using http://www.xdebug.org/

like image 180
AlfaTeK Avatar answered Mar 06 '23 21:03

AlfaTeK