Xdebug
On Debian:
apt-get install php5-xdebug kcachegrind
Having the xdebug module around will already provide better debugging output in case of fatal errors and uncaught exceptions. The output can still be tweaked though:
In /etc/php5/conf.d/xdebug.ini, below the zend_extension line, add the following:
xdebug.var_display_max_children = 512
xdebug.var_display_max_data = 2048
xdebug.var_display_max_depth = 10
For profiling, add:
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = /my/desired/outputdir
Kris Köhntopp über das Debuggen von PHP-Kode: http://blog.koehntopp.de/archives/1978-PHP-5-Debuggen-mit-Xdebug-und-vim...