microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.18k stars 508 forks source link

Fail to debug the .NET MVC project with an error on Windows ARM platform #4312

Closed v-ruizh closed 1 week ago

v-ruizh commented 1 month ago

OS: Win 11 ARM Build Version: 1.29.1 Regression: Not a Regression

Repro Steps:

  1. Open a .NET MVC project in VS Code.
  2. Add Docker related files to it.
  3. Debug the above project with the configuration "Docker .NET Launch".
  4. Check whether succeeds to debug the MVC project without any error.

Expect: Succeed to debug the MVC project without any error.

Actual: Fail to debug the MVC project with an error. image image

More Info:

  1. This issue does not reproduce on Windows Intel platform.
  2. This issue also reproduces for a .NET Console project.
bwateratmsft commented 1 month ago

I think I know what's going on. Currently it looks like we only install the linux-arm64 debugger if on an M1 Mac: https://github.com/microsoft/vscode-docker/blob/9f8639508224478d867776d7f3fb3df655f5f837/src/debugging/netcore/NetCoreDebugHelper.ts#L240-L255