I want to debug PHP from NetBeans 7.1. My web server is IIS. I've first of all discovered that NetBeans tries to use XDebug, downloaded it, copied DLL to appropriate folder. Now I would like to know how to configure it properly.
The online php config analyser gave me following advices:
- Download php_xdebug-2.1.4-5.3-vc9-nts.dll
- Move the downloaded file to C:\Program Files\PHP\v5.3\ext
- Edit C:\Program Files\PHP\v5.3\php.ini and add the line
- zend_extension = C:\Program Files\PHP\v5.3\ext\php_xdebug-2.1.4-5.3-vc9-nts.dll
Restart the webserver
Ok, everything is clear, except in which section of php.ini to put the line. I'm in doubt.
On the other side, Netbeans complains:
No connection from xdebug was detected within 224 seconds. The reasons could be that xdebug is not installed or not properly configured. Be sure that your php.ini file contains these entries:
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost (or hostname)
xdebug.remote_port=9000
And again, in which section of php.ini to put these lines?