title: "/remote_debugger/vsdbg: not found" and "Failed to launch debug adapter" with docker-compose
body: <p>I'm getting this error whenever I try to run my project (with docker-compose) and cannot find any solution. I'm really hoping I've just been doing something dumb, so here goes...<br />
  I created a simple ASP.NET Core Web App (to test this out as I was having a problem on my &quot;real&quot; project.)</p>
  <ul>
  <li>.Net Core 3.1</li>
  <li>Visual Studio 16.11.3</li>
  <li>Docker Desktop ver 4.0.1 (Docker Engine: 20.10.8)</li>
  </ul>
  <p>Scenarios below were tried on both WSL2 and Hyper-V.<br />
  Docker itself is running fine, I can use containers no problem.<br />
  <strong>When I create the project with Docker support, I can run it fine (it creates the container, I can debug, etc)</strong></p>
  <p>If I add a docker-compose setup, however, I get the following error popup when I try run my project (from VS)</p>
  <p><a href="https://i.stack.imgur.com/xHRoz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xHRoz.png" alt="Failed to launch debug adapter" /></a></p>
  <p>The only thing I can see in the output window (debug) is this:<br />
  <code>The program '' has exited with code -1 (0xffffffff).</code></p>
  <p>To be clear, the build was successful, the container is running in docker, etc.<br />
  After much effort, I found a way to get more information by running the following in the VS Command window:<br />
  <code>DebugAdapterHost.Logging /On /OutputWindow</code></p>
  <p>I now can see some more detail (in Output - Debug Adapter Host Log) but don't know how to solve it.
  The most relevant message (afaik) is<br />
  <strong><code> 1&gt; ERROR: Debug adapter error output: /bin/sh: 1: /remote_debugger/vsdbg: not found</code></strong></p>
  <p>but here is the full output:
  <a href="https://i.stack.imgur.com/t6h2X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t6h2X.png" alt="Debug Adapter Host Log output" /></a></p>
  <p>So I'm pretty stumped. I've uninstalled and reinstalled docker countless times, tried every imaginable setting, ensured everything is running with admin privileges, and so on.</p>
  <p>In case it helps, here is my debug output from the same run (note how it says vsdbg is found)<br />
  <a href="https://i.stack.imgur.com/gwJeE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gwJeE.png" alt="build output" /></a></p>
  <p>Does anybody know what else I can try, or how to get more insight into this?</p>