title: Breakpoints not hit with xdebug, PhpStorm and Laravel 3 / mod_rewrite
body: <p>I'm pretty desperate and running out of ideas:</p>
  
  <p>I've configured xdebug and PhpStorm for a Laravel 3 project. Running the project locally on Mac OS X Apache, so PhpStorm and the web application run on the same machine. Configured a virtual host so that localhost.lt points to Laravel's public directory.</p>
  
  <p>Relevant xdebug entries in php.ini:</p>
  
  <pre><code>zend_extension = /usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
  [xdebug]
  xdebug.idekey="PHPSTORM"
  xdebug.remote_enable=1
  xdebug.profiler_enable=1
  xdebug.remote_log=/var/log/xdebug_remote.log
  xdebug.remote_connect_back=1
  </code></pre>
  
  <p>Confirmed that extension gets loaded.</p>
  
  <p>Set up a PHP Web Application debug / run configuration without any path mappings as nothing is symlinked and the folders on the web server and for PhpStorm are exactly the same (as the web server is on the same machine).</p>
  
  <p>When launching via "Debug" from the IDE, xdebug_remote.log correctly shows the breakpoint we've set in one of the files in application/libraries:</p>
  
  <pre><code>&lt;- breakpoint_set -i 5 -t line -f
  file:///Users/RalfR/src/livetime/application/libraries/LiveTime.php -n 676
  -&gt;
  &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="5" id="9230016"&gt;&lt;/response&gt;
  </code></pre>
  
  <p>However, when we click a link that invokes the function from the LiveTime.php library, the breakpoint is NOT hit. The log shows:</p>
  
  <pre><code>&lt;- stack_get -i 6 -&gt; 
  &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="6"&gt;&lt;stack where="{main}" level="0" type="file" filename="file:///Users/RalfR/src/livetime/public/index.php" lineno="14"&gt;&lt;/stack&gt;&lt;/response&gt;
  
  &lt;- run -i 7 -&gt; 
  &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run" transaction_id="7" status="stopping" reason="ok"&gt;&lt;/response&gt;
  
  &lt;- run -i 8
  Log closed at 2013-04-22 21:03:57
  </code></pre>
  
  <p>As many frameworks, Laravel uses .htaccess mod_rewrite to pipe everything through public/index.php. May this be the cause for PhpStorm / xdebug not catching the breakpoint in application/libraries/LiveTime.php as it appears to xdebug that the LiveTime.php script is never executed?</p>
  
  <p>If so, how can we solve this problem?</p>