- This is the old and buggy xdebug config:
[Xdebug]
;zend_extension=/usr/lib/php5/20121212/xdebug.so
;xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1
xdebug.remote_enable=1
xdebug.remote_autostart = 1
xdebug.remote_handler="dbgp"
xdebug.remote_port=9000
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger = 1
- This is new and stable xdebug config:
[xdebug]
;zend_extension=/usr/lib/php5/20121212/xdebug.so
xdebug.remote_host=127.0.0.1
xdebug.remote_enable=1
xdebug.remote_autostart = 1
xdebug.default_enable = 1
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.idekey="netbeans-xdebug"
xdebug.profiler_enable=1
xdebug.profiler_enable_trigger = 1
- sudo vim /etc/php5/apache2/php.ini
- Change to new config
- sudo vim /etc/php5/cli/php.ini
- Change to new config
- sudo service apache2 restart
- Disable 'Watches and Balloon Evaluation' in netbeans
- Restart netbeans