I try using xdebug with NetBeans to debug PHP. I start debug, and NetBeans waits for ever for a connection with xdebug. I have NetBeans 6.8 (latest version) with the latest MAMP package installed on my mac.
My php.ini looks like this:
[xdebug]
;zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
If your php.ini really looks like what you posted, you have to un-comment the
zend_extensionline (i.e. remove the ‘;‘ at its begninning), so Xdebug is actually loaded.Then, make sure Xdebug is loaded, calling
phpinfo()from a PHP file (just to be sure).After that : I suppose there should be some options to configure the debugger in netbeans ? If so, is netbeans listening on port 9000 ? (The one you configured in php.ini)