Skip to main content

Fix Waiting For Connection (netbeans-xdebug) in Netbeans

· One min read
Tien
  1. 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
  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
  1. sudo vim /etc/php5/apache2/php.ini
  2. Change to new config
  3. sudo vim /etc/php5/cli/php.ini
  4. Change to new config
  5. sudo service apache2 restart
  6. Disable 'Watches and Balloon Evaluation' in netbeans
  7. Restart netbeans