Set up Xdebug for NetBeans IDE

Submitted by Fekete Zoltán on

Install xdebug then append the followings to your php.ini file.

zend_extension=xdebug
xdebug.remote_enable=on
xdebug.log='/tmp/xdebug.log'
xdebug.log_level=10
xdebug.mode=debug
xdebug.idekey = netbeans-xdebug
xdebug.remote_handler=dbgp
xdebug.client_host=<netbeans IP address>
xdebug.client_port=<netbeans port>