title: Xdebug stopped working, where do I look for errors?
body: <p>I installed Xdebug and all was fine, until suddenly it stopped working. phpinfo() gives a nice XDebug output with all variables. </p>
  
  <pre><code>php -m | grep deb
  </code></pre>
  
  <p>also gives twice XDebug (for Zend and PHP), so again looks just fine. My php.ini has these lines: </p>
  
  <pre><code>zend_extension=/usr/lib/php5/20090626/xdebug.so
  ;extension=xdebug.so
  xdebug.remote_host=localhost
  xdebug.remote_enable=on
  xdebug.remote_port=9001
  xdebug.remote_handler=dbgp
  xdebug.remote_connect_back=1
  </code></pre>
  
  <p>And yet, when running this code with should check XDebug (from Netbeans docs) it's just stuck. So No IDE is working with XDebug. </p>
  
  <pre><code>&lt;?php
  $address = '127.0.0.1';
  $port = 9001;
  $sock = socket_create(AF_INET, SOCK_STREAM, 0);
  socket_bind($sock, $address, $port) or die('Unable to bind');
  socket_listen($sock);
  $client = socket_accept($sock);
  echo "connection established: $client";
  socket_close($client);
  socket_close($sock);
  </code></pre>
  
  <p>Also, according to XDebug installation, I went twice throught the steps. What is wrong with my config? Thanks.</p>