Debug PHP code with XDebug and VS Code For development I use a local Drupal 7 installation on Xampp under Windows 10. I use Visual Studio Code as IDE and want to debug my PHP code with it. I tried to set that up but can not quite get it working. This is my configuration:

Xampp installation path: c:\xampp
PHP: c:\xampp\php (version PHP 7.3.17 64bit)
Drupal files: c:\xampp\htdocs

php.ini additions:
[XDebug]
zend_extension = &quot;c:\xampp\php\ext\php_xdebug-2.9.6-7.3-vc15-x86_64.dll&quot;
xdebug.remote_autostart = 1
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = &quot;c:\xampp\tmp&quot;
xdebug.remote_enable = 1
xdebug.remote_handler = &quot;dbgp&quot;
xdebug.remote_host = &quot;127.0.0.1&quot;
xdebug.remote_log = &quot;c:\xampp\tmp\xdebug.txt&quot;
xdebug.remote_port = 9000
xdebug.trace_output_dir = &quot;c:\xampp\tmp&quot;
xdebug.remote_cookie_expire_time = 36000

VS Code launch config:
{
    &quot;version&quot;: &quot;0.2.0&quot;,
    &quot;configurations&quot;: [
        {
            &quot;name&quot;: &quot;Listen for XDebug&quot;,
            &quot;type&quot;: &quot;php&quot;,
            &quot;request&quot;: &quot;launch&quot;,
            &quot;port&quot;: 9000,
            &quot;runtimeExecutable&quot;: &quot;c:\\xampp\\php\\php.exe&quot;,
            &quot;pathMappings&quot;: {
              &quot;c:\\xampp\\htdocs&quot;: &quot;${workspaceFolder}&quot;
            },
            &quot;xdebugSettings&quot;: {
              &quot;show_hidden&quot;: 1
            }
          }
    ]
}


I downloaded the correct xdebug DLL and put it in:
c:\xampp\php\ext\php_xdebug-2.9.6-7.3-vc15-x86_64.dll
In my Chrome browser I installed the &quot;XDebug Helper&quot; extension.
In VS Code I installed the XDebug extension and set a few breakpoints in my code.

Then I open my Drupal site in Chrome and hit debug in the XDebug Browser extension.
The breakouts don't get deactivated as &quot;unbound&quot; but the debugger does not stop at any of them either.
What am I missing?
In my VS Code launch config I had to change the pathMappings from this:
&quot;c:\\xampp\\htdocs&quot;: &quot;${workspaceFolder}&quot;

into that:
&quot;c:\\xampp\\htdocs\\sites\\all&quot;: &quot;${workspaceFolder}&quot;