The Xdebug extension helps you debugging your script by providing a lot of valuable debug information [1]. The debug information can provide:
-stack and function traces in error messages
-memory allocation
-protection for infinite recursions
[1] http://xdebug.derickrethans.nl