title: Notepad++ source mapping for remote debugging with Xdebug
body: <p>I have some PHP applications on a remote CentOS 6.5 computer. Now I want to debug the applications from within my Windows XP developer machine using Notepad++. Xdebug is configured just fine. <strong>But I can't get the source mapping in Notepad++ to work correctly.</strong></p>
  
  <p>I always get the error: <em>Unable to map remote: file:///var/www/html/index.php (ip: 192.168.1.17 idekey: dbgp) fallback to source</em></p>
  
  <p>I tried all the different suggestions I found anywhere about this topic. Prepending a <em>file://</em> before the remote path, appending slashes or not, trying all variants of paths... The only solution to suppress this message, is checking the DBGp configuration option:</p>
  
  <p>&#9745; Use SOURCE command for all files and bypass mapping<br /></p>
  
  <p>Then the sources are always obtained directly from the server and i get files like this: <em>dbgp_file%3a%2f%2f%2fvar%2fwww%2fhtml%2findex.php</em>. I don't know if that is the right way and if it allows for the same functionality as a fully working mapping.</p>
  
  <p>After searching heavily for this issue, I figured out that there are people who fixed this issue for themself. <strong>But they are always using SAMBA in order to have the sources on the Windows machine.</strong></p>
  
  <p>I don't really want to use Samba, I would like to have a copy of the PHP sources to which I want to map the debug information.</p>
  
  <p><strong>So, is it possible to have this mapping without SAMBA?</strong> Or am I doing something else wrong? I feel thankful for all kind of support to this.</p>
  
  <p>Sebastian</p>
  
  <p>Here are my Xdebug settings (/etc/php.d/xdebug.ini):</p>
  
  <pre><code>; Enable xdebug extension module
  zend_extension=/usr/lib64/php/modules/xdebug.so
  
  xdebug.auto_trace=On
  xdebug.remote_enable=On
  xdebug.remote_connect_back=1
  </code></pre>
  
  <p>Here is my Notepad++ DBGp configuration:</p>
  
  <p>&#9744; Bypass all mappings (local windows setup)<br />
  <li>Remote Server IP: intranet (mapped to 192.168.1.17 via hosts file)</li>
  <li>IDE KEY: dbgp</li>
  <li>Remote Path: file:///var/www/html</li>
  <li>Local Path: D:\DebugSources</li></p>
  
  <p>&#9745; Refresh local context on every step<br />
  &#9745; Refresh global context on every step<br />
  &#9744; Use SOURCE command for all files and bypass mapping<br />
  &#9744; Start with closed socket (firewall conflicts work around)<br />
  &#9744; Break at first line when debugging starts<br />
  Maximum depth of elements: 3<br />
  Maximum child elements: 15<br />
  Maximum variable data: 512</p>