I just spent an hour or so trying to set up VSCode and Xdebug (in combination with DrupalVM). Being relatively new to VSCode, I don't have lots of experience yet in configuration files. But at work I am used to working with PHPStorm, so I do have experience in using XDebug and setting that up. I copied the example code (from the VSCode Marketplace) and couldn't get it to work, when suddenly I saw the $ prefixed in another configuration example. That led me to this repo, and eventually I noticed the (probably) highly related issue #207 .
Tl;DR:
pathMapping example code on marketplace.visualstudio.com (and thus also in the VSCode Extension Info page) lacks an $ before {workspaceRoot}, which was already fixed on Github by #207.
User @ooystein noticed this as well: #207 (comment)
Screenshot of code on github:

Screenshot on marketplace:

I just spent an hour or so trying to set up VSCode and Xdebug (in combination with DrupalVM). Being relatively new to VSCode, I don't have lots of experience yet in configuration files. But at work I am used to working with PHPStorm, so I do have experience in using XDebug and setting that up. I copied the example code (from the VSCode Marketplace) and couldn't get it to work, when suddenly I saw the
$prefixed in another configuration example. That led me to this repo, and eventually I noticed the (probably) highly related issue #207 .Tl;DR:
pathMapping example code on marketplace.visualstudio.com (and thus also in the VSCode Extension Info page) lacks an
$before{workspaceRoot}, which was already fixed on Github by #207.User @ooystein noticed this as well: #207 (comment)
Screenshot of code on github:
Screenshot on marketplace: