debug in netbeans code example
Example 1: netbeans xdebug
zend_extension=/path/to/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
Example 2: how to debug in php
ini_set('display_errors', 'On');
error_reporting(E_ALL);