In NetBeans, as in Zend Studio For Eclipse, PDT is a great feature - debugging scripts, as in PDT, it is implemented using xdebug. I will not tell how to configure xdebug - on HabraHabr already there was a series of articles about use of xDebug. But NetBeans is deprived of a large number of settings - we can specify both the php binary and the port on which xdebug is running. The only thing we can’t specify is which php.ini file should be used: when using several configurations, php chooses one of the available php.ini files on its own, which is not very good. Thus, we must somehow circumvent these restrictions, here is my suggestion: we will write such a script: [root@localhost infoSite]# cat /usr/bin/phpWithIni #!/bin/bash /usr/bin/php-5.2.5 --php-ini '/etc/php/5.2.5/apache2-mod_php/php.ini' -f $1
Instead of /usr/bin/php-5.2.5, write the path to the php binary, and instead of /etc/php/5.2.5/apache2-mod_php/php.ini, specify the address to the desired php.ini file.
Now you should add chmod rights (+ x and give the right to launch the required users), and in NetBeans, specify instead of the path to php the path to this srkipt.