title: Xdebug ignores breakpoints in NetBeans
body: <p>I am trying to debug a local Wordpress instance (on xampp) in NetBeans, on Windows 7. For some reason the breakpoints outside of any file living in the webserver's root are ignored.</p>
  
  <p>I have Googled around for ages, to no avail. I have read <a href="https://stackoverflow.com/questions/9984825/why-is-xdebug-ignoring-breakpoints-from-netbeans-6-8">SO1</a>, <a href="https://stackoverflow.com/questions/2963027/netbeans-xdebug-php-not-working">SO2</a>, <a href="https://stackoverflow.com/questions/2989748/netbeans-xdebug-nightmare">SO3</a>, <a href="https://stackoverflow.com/questions/3422433/xdebug-ignores-breakpoints">SO4</a>, <a href="https://stackoverflow.com/questions/2359712/remote-debugging-wont-stop-at-breakpoints">SO5</a> and <a href="https://stackoverflow.com/questions/3288840/xdebug-successfully-connects-to-dbgp-clients-but-wont-stop-at-breakpoints">SO6</a>, also to no avail. All these SOs mention Path Mapping. I have mapped all my folders, but since my project folder is the same as my project folder, these mappings are exactly the same. Moreover, the path in the xdebug log points to the correct file (see below).</p>
  
  <p>Calling <code>xdebug_break();</code> only works when it is called in one of the files living in the webserver's root (`wp-develop' in my case), so I suspect I'm not mapping the paths correctly.</p>
  
  <p>The portion of my php.ini file that is related to xdebug looks like this:</p>
  
  <pre><code>[XDebug]
  zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
  xdebug.profiler_append = 0
  xdebug.profiler_enable = 1
  xdebug.profiler_enable_trigger = 0
  xdebug.profiler_output_dir = "C:\xampp\tmp"
  xdebug.profiler_output_name = "cachegrind.out.%t-%s"
  xdebug.remote_enable = On
  xdebug.remote_handler = "dbgp"
  xdebug.remote_host = "localhost"
  xdebug.remote_port=9000
  xdebug.trace_output_dir = "C:\xampp\tmp"
  xdebug.var_display_max_depth = -1
  xdebug.var_display_max_children = -1
  xdebug.var_display_max_data = -1
  xdebug.remote_log = "C:\xdebugremotelog.txt"  
  </code></pre>
  
  <p>The output of the xdebug log looks like this:</p>
  
  <pre><code>&lt;- breakpoint_set -i 122 -t line -s enabled -f file:///c:/xampp/htdocs/wp-develop/wp-content/themes/gap/gap.php -n 32
  -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="122" state="enabled" id="81240001"&gt;&lt;/response&gt;
  </code></pre>
  
  <p><code>c:/xampp/htdocs/wp-develop/wp-content/themes/gap/gap.php</code> is the correct path.</p>
  
  <p>What am I missing here? Any help would be appreciated.</p>
  
  <p>In fact, I think I might be doing the Path Mappings wrong. Could someone give me an example of how they should actually look?</p>