title: Problems using XDebug with TYPO3 in Netbeans (Symlinks in Vagrant Machine)
body: <p>What i want is debugging TYPO3 code with XDebug in a local development environment with Netbeans.</p>
  
  <p>What i have is:</p>
  
  <ul>
  <li>MacOS Sierra</li>
  <li>Netbeans 8.2</li>
  <li>Vagrant 1.8.7</li>
  <li>Virtualbox 5.1.26</li>
  <li>LAMP stack (Debian Stretch, Apache 2.4, PHP-FPM 7.0, MariaDB 10.1)</li>
  <li>Typo3 8.7.6 (standard mode not composer)</li>
  </ul>
  
  <p>The folder structure of Typo3 is as recommended </p>
  
  <pre><code>/typo3_src-8.7.6
  /typo3/typo3_src -&gt; ../typo3_src-8.7.6
  /typo3/index.php -&gt; typo3_src/index.php
  /typo3/typo3 -&gt; typo3_src/typo3
  </code></pre>
  
  <p>The according XDebug params are</p>
  
  <pre><code>php_admin_value[xdebug.remote_enable] = 1
  php_admin_value[xdebug.remote_host] = 192.168.33.1
  php_admin_value[xdebug.remote_port] = 9000
  php_admin_value[xdebug.remote_handler] = dbgp
  php_admin_value[xdebug.max_nesting_level] = 400
  </code></pre>
  
  <p>The PHP project in Netbeans has set the following path mapping under "Run Configuration" > "Advanced ..":</p>
  
  <pre><code>Server Path              Project Path
  /var/www/html/typo3      /Users/{me}/{project}/typo3
  </code></pre>
  
  <p>and Netbeans is listening on port 9000 as well as XDebug. The according xdebug.log shows success when starting the debugging:</p>
  
  <pre><code>Log opened at 2017-09-16 08:17:52
  I: Connecting to configured address/port: 192.168.33.1:9000.
  I: Connected to client. :-)
  -&gt; &lt;init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/html/typo3_src-8.7.6/index.php" language="PHP" ..&gt;&lt;/init&gt;
  </code></pre>
  
  <p>The problem is: XDebug is not recognizing the break points.</p>
  
  <p>When adding an additional path mapping to the typo3 sources</p>
  
  <pre><code>Server Path                      Project Path
  /var/www/html/typo3              /Users/{me}/{project}/typo3
  /var/www/html/typo3_src-8.7.6    /Users/{me}/{project}/typo3
  </code></pre>
  
  <p>then Netbeans stops at least at /typo3/index.php when setting up "Stop at first line". But it still does not stop on custom break points in a custom typo3 extension under /typo3/typo3conf/ext/.. . When replacing all symbolic links with their real sources (index.php and typo3), then the debugging works like a charm.</p>
  
  <p>Is there <em>the</em> way to solve these path mappings for the symbolic links of a default TYPO3 8 LTS installation?</p>