title: Xdebug in Netbeans: not stopping on breakpoint inside file in "web root's" parent folder
body: <p>I have a netbeans project with a directory tree like this:</p>
  
  <pre><code>&lt;source folder&gt;
  |
  |---&gt; gui &lt;web root folder&gt;
  |      |
  |      L---&gt; datos.php
  |
  L---&gt; index.php
  </code></pre>
  
  <p>datos.php changes the working directory to .. (source folder) and includes index.php like this:</p>
  
  <pre><code>chdir('..');
  require 'index.php';
  </code></pre>
  
  <p><strong>If I put a breakpoint inside datos.php, the debugger breaks on it correctly, but when putting one in index.php it ignores it.</strong></p>
  
  <p>The strange thing is 6 months ago I had the same problem and I was able to fix it. Now I don't know why it stopped working and what I did back then to fix it.</p>
  
  <p>More info:</p>
  
  <p>xdebug log shows the following command for breakpoint setting:</p>
  
  <pre><code>breakpoint_set -i 315 -t line -s enabled -f file:///Users/tomasgirardi/NetBeansProjects/datamed/index.php -n 51
  breakpoint_set -i 316 -t line -s enabled -f file:///Users/tomasgirardi/NetBeansProjects/datamed/gui/datos.php -n 39 
  </code></pre>
  
  <p>In both cases xdebug responds with state="enabled"</p>
  
  <p>And if I debug manually, I can use the following command to set the breakpoint, <strong>which works</strong>:</p>
  
  <pre><code>breakpoint_set -i 315 -t line -s enabled -f file:///../index.php -n 51
  </code></pre>
  
  <p>But I don't know how could I make netbeans issue the breakpoint_set command with the same <strong>file:///../index.php</strong> argument and not <strong>file:///Users/tomasgirardi/NetBeansProjects/datamed/index.php</strong> or any other way I can make this work.</p>
  
  <p>Thanks in advance for any help!</p>