Xdebug is a php debugger. It allows a developer to debug php applications in a similar manner to that of other languages. Clients can connect to xdebug remotely. NetBeans is an example of a remote client.
phpize ./configure --enable-xdebug make sudo cp modules/xdebug.so /usr/local/apache2/modules/ sudo chown www:www /usr/local/apache2/modules/xdebug.so
; set up xdebug zend_extension="/usr/local/apache2/modules/xdebug.so" xdebug.remote_enable=1 xdebug.trace_enable_triger=1 xdebug.trace_output_dir="/tmp" xdebug.trace_output_name="trace.%R" xdebug.profiler_enable_triger=1 xdebug.profiler_output_dir="/tmp" xdebug.profiler_output_name="cachegrind.out.%R" ;xdebug.remote_handler=dbgp ;xdebug.remote_host=localhost ;xdebug.remote_port=9000
sudo /usr/local/apache2/bin/apachectl -k graceful
ini_set("xdebug.collect_params", 3); xdebug.collect_includes = On ini_set("xdebug.collect_return", 1); xdebug.show_mem_delta = On
php -dxdebug.remote_autostart=On myprogram.php
xdebug overloads several php functions, so they don't work exactly as they did before.
ini_set("xdebug.var_display_max_children", -1);