title: XAMPP Eclipse PHP XDEBUG : Waiting for XDebug session
body: <p>Problems Launching Xdebug debugger in Eclipse hangs at 78%. 3 hours of testing and still no closer.</p>
  
  <p><strong>Configuration: Windows 10, XAMPP 1.8.2 - PHP 7.0.9 (php.ini below)</strong></p>
  
  <p><strong>Eclipse: Version: Mars.2 Release (4.5.2)
  Build id: 20160218-0600</strong></p>
  
  <p>The xdebug.dll was recommended by <a href="https://xdebug.org/wizard.php" rel="nofollow noreferrer">https://xdebug.org/wizard.php</a></p>
  
  <pre><code>zend_extension=C:\xampp-7.0.9\php\ext\php_xdebug-2.5.0rc1-7.0-vc14.dll
  xdebug.remote_enable=true
  xdebug.remote_host=localhost
  xdebug.remote_port=9001
  xdebug.remote_handler=dbgp
  xdebug.remote_connect_back=1
  xdebug.idekey=ECLIPSE_DBGP
  </code></pre>
  
  <p>Running phpinfo() I can see xdebug is installed/configured</p>
  
  <blockquote>
    <p>This program makes use of the Zend Scripting Language Engine: Zend
    Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
        with Xdebug v2.5.0rc1, Copyright (c) 2002-2016, by Derick Rethans</p>
  </blockquote>
  
  <pre><code>xdebug.remote_autostart Off Off
  xdebug.remote_connect_back  On  On
  xdebug.remote_cookie_expire_time    3600    3600
  xdebug.remote_enable    On  On
  xdebug.remote_handler   dbgp    dbgp
  xdebug.remote_host  localhost   localhost
  xdebug.remote_log   no value    no value
  xdebug.remote_mode  req req
  xdebug.remote_port  9001    9001
  </code></pre>
  
  <p>Windows firewall allows Eclipse (changed to both private and public)</p>
  
  <p>Eclipse configuration:
  Xdebug global settings and Debug profile both set at 9001 port.
  <a href="https://i.stack.imgur.com/DvysX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DvysX.png" alt="enter image description here"></a></p>
  
  <p>When running a debug configuration the browser launches with the correct parameters: </p>
  
  <pre><code>xxx.localtest.me/?XDEBUG_SESSION_START=ECLIPSE_DBGP&amp;KEY=14805782647381
  </code></pre>
  
  <p>(NOTE: Both Firefox and IE were tested [as external browsers in Eclipse] with the same results) BUT Eclipse hangs with this message</p>
  
  <blockquote>
    <p>Launching: Waiting for XDebug Session...    (Launching Test (78%)</p>
  </blockquote>
  
  <p>This is where I've been for the afternoon so if anyone can run their eyes over this setup and suggest some things I would be most appreciative.</p>
  
  <p>I've looked around SO:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/16121672/eclipse-xampp-xdebug-waiting-for-xdebug-session-stays-in-57">Eclipse, XAMPP, xDebug - waiting for XDebug session - stays in 57%</a></li>
  <li><a href="https://stackoverflow.com/questions/35341240/php-debug-configuration-hangs-waiting-for-xdebug-session-eclipse-mars">PHP debug configuration hangs - Waiting for XDebug session | Eclipse (Mars)</a></li>
  </ul>
  
  <p>And others... trying almost every combination under the sun.</p>
  
  <p>This has come off the back of an upgrade from an older XAMPP version with PHP 5.6 that had xdebug installed and working on this box. The Upgrade to PHP 7 is necessary due to dependencies by some newer PHP libraries.</p>