title: Remote PHP Debugging with Netbeans and XDebug
body: <p>I'm trying to use XDebug in the following scenario</p>
  
  <ul>
  <li>Physical Host on Windows 7, with Netbeans 7.1.1</li>
  <li>Virtual guest on Ubuntu, with Apache server and PHP 5.3.10</li>
  <li>the PHP code of my website is on a shared folder on Ubuntu, in /var/www/mysite</li>
  <li>the PHP code is accessible from my Windows host, on \\guestIP\mysite, with R/W permissions</li>
  <li>Website accessible from <a href="http://mysite.local.fr">http://mysite.local.fr</a>, from both host and guest</li>
  </ul>
  
  <p>I created a Netbeans project from my Windows Host, pointing to \\guestIP\mysite.
  In the project Run configuration, I have the following:</p>
  
  <ul>
  <li>Run as: Local web server</li>
  <li>Project URL: <a href="http://mysite.local.fr">http://mysite.local.fr</a></li>
  <li>Index file: index.php (does exist in the project)</li>
  </ul>
  
  <p>In the Advanced Run Configuration:</p>
  
  <ul>
  <li>I checked "Ask every time" (I also tried using "Do not ask" and starting the browser with the session key  myself)</li>
  <li>I tried setting '/var/www/mysite' - \\GuestIP\mysite for the mapping (and tried using nothing as well)</li>
  <li>I haven't touched the proxy settings</li>
  </ul>
  
  <p>I have the following in the php.ini on my Ubuntu VM</p>
  
  <pre><code>xdebug.remote_enable = on
  xdebug.profiler_enable = off
  xdebug.profiler_enable_trigger = off
  xdebug.profiler_output_name = cachegrind.out.%t.%p
  xdebug.profiler_output_dir = /tmp
  ;xdebug.remote_host=localhost,&lt;HostIP&gt;, mysite.local.fr
  xdebug.remote_connect_back=1
  xdebug.remote_handler=dbgp
  xdebug.idekey="netbeans-xdebug"
  xdebug.remote_mode=req
  </code></pre>
  
  <p>None of this works, Netbeans does not stop at any breakpoint from Windows.</p>
  
  <p><strong>Debugging directly from my VM with Netbeans works fine.</strong></p>
  
  <p>Can someone tell me how to get my debugger to work remotely from Windows?
  Thanks</p>