title: Setup Xdebug on local webserver (xampp) and php 7?
body: <p>I try to get started with <a href="https://xdebug.org" rel="nofollow noreferrer">Xdebug</a> for multiple hours without success.</p>
  
  <p>First I determined which php_xdebug.dll version I need by visiting this <a href="https://xdebug.org/wizard.php" rel="nofollow noreferrer">official link</a>, and followed their instructions.</p>
  
  <pre><code>Summary
  Xdebug installed: 2.6.0
  Server API: Apache 2.0 Handler
  Windows: yes - Compiler: MS VC15 - Architecture: x86
  Zend Server: no
  PHP Version: 7.2.3
  Zend API nr: 320170718
  PHP API nr: 20170718
  Debug Build: no
  Thread Safe Build: yes
  Configuration File Path: C:\WINDOWS
  Configuration File: A:\xampp\php\php.ini
  Extensions directory: A:\xampp\php\ext
  You're already running the latest Xdebug version
  But here are the instructions anyway:
  
  1. Download php_xdebug-2.6.0-7.2-vc15.dll
  2. Move the downloaded file to A:\xampp\php\ext
  3. Update A:\xampp\php\php.ini and change the line
     zend_extension = A:\xampp\php\ext\php_xdebug-2.6.0-7.2-vc15.dll
  4. Restart the webserver
  </code></pre>
  
  <p>This is my <code>php.ini</code> snippet:</p>
  
  <pre><code>[XDebug]
  zend_extension="A:\xampp\php\ext\php_xdebug-2.6.0-7.2-vc15.dll"
  xdebug.profiler_append = 0
  xdebug.profiler_enable = 0
  xdebug.remote_enable = on
  xdebug.remote_handler = "dbgp"
  xdebug.remote_host = localhost
  xdebug.remote_port = 9001
  xdebug.trace_output_dir = "A:\xampp\tmp"
  xdebug.remote_log = "A:\xampp\tmp\xdebug\xdebug.log"
  xdebug.idekey = "netbeans-xdebug"
  xdebug.remote_autostart = on
  xdebug.remote_connect_back = on
  </code></pre>
  
  <p>I set the <code>port</code> and <code>idekey</code> in netbeans accordingly (Tools -> Options -> PHP -> Debugging).</p>
  
  <p><a href="https://i.stack.imgur.com/RW4pK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RW4pK.png" alt="enter image description here"></a></p>
  
  <p>...I also made sure that the project is using the settings (Project -> Properties -> Run Configuration)</p>
  
  <p><a href="https://i.stack.imgur.com/ixSPh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ixSPh.png" alt="enter image description here"></a></p>
  
  <p>I restarted NetBeans and Apache.
  I even installed the extension "Xdebug helper" and "NetBeans Connector".
  The Xdebug helper extension is already configured and set to debug mode.</p>
  
  <hr>
  
  <p>Now I set a breakpoint. But I get "Waiting For Connection (netbeans-xdebug)" after right clicking in the source code and clicking on "Debug File", and it is loading forever. </p>
  
  <p><a href="https://i.stack.imgur.com/67Sc5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/67Sc5.png" alt="enter image description here"></a></p>
  
  <p>I also can't click on the debug buttons, they are all grayed out:</p>
  
  <p><a href="https://i.stack.imgur.com/2EoMy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2EoMy.png" alt="enter image description here"></a></p>
  
  <p>I always call the target site with the following parameter, like instructed in the <a href="https://xdebug.org/docs/all#activate_debugger" rel="nofollow noreferrer">official documentation</a>: <code>?XDEBUG_SESSION_START=netbeans-xdebug</code></p>
  
  <hr>
  
  <p>I tried different solutions from other questions on SO, but nothing helped.</p>
  
  <p>I already tried to change the line <code>xdebug.remote_host</code> in php.ini to my local ipv4 address, it made no difference. I also tested different ports. Of course I always restarted apache after changing something in the php.ini.</p>
  
  <p>I am using Windows 10 Pro 64 bit and Chrome.</p>
  
  <p>Any ideas? Thanks in advance for any help!</p>
  
  <hr>
  
  <p>More:</p>
  
  <p>I checked my firewall, the port is not being blocked.</p>