PHP 5.6.x: activate xdebug for use with Netbeans 8.1

The following are my settings to get php-xdebug up and running for Netbeans IDE code debugging…

zend_extension=xdebug.so

xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

Make sure that the given port does not conflict with any other service on that host and port. php-fpm runs on port 9000 and above (at least many tutorials show that) and thus may result in errors when starting a xdebug process on that port…