albertopasca.it
[PHP] – Debug using Netbeans and XDebug - while (true) { }
Just a simple memo. Open php.ini and paste these lines at the end of file: [code lang=”bash” autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”][xdebug] xdebug.default_enable=1 xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_autostart=1 zend_extension="/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so" xdebug.idekey="netbeans-xdebug" xdebug.remote_mode=req[/code] Make sure that idekey and remote_port are the same of the Netbeans preferences: Restart apache and start Debug with Netbeans. I’m using XAMPP and Netbeans 8.0 on Mac OSx. enjoy.
Alberto Pasca