The Xdebug extension helps you debugging your script by providing a lot of valuable debug information. The debug information that Xdebug can provide include the following:
1. Stack traces and function traces in error messages with
a. Full parameter display for user defined functions
b. Function name, file name and line indications
c. Support for member functions
2. Memory allocation
3. Protection for infinite recursions
Platform: PEAR version 0.9.1-dev or higher and some UNIX; Code license: The Xdebug License
Reference: https://xdebug.org/