microsoft / vscode-docker

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

An error occurs after clicking "Restart" button during "Ctrl+F5" a MVC project #4129

Closed v-ruizh closed 11 months ago

v-ruizh commented 11 months ago

OS: Win 10 Build Version: 20231019.1 Regression: Not a Regression

Repro Steps:

  1. Open a .NET MVC project in VS Code Insiders.
  2. Add Docker related files to it.
  3. Ctrl+F5” the above project with the configuration "Docker .NET Launch" -> Click "Restart" button to restart debugging.
  4. Check whether succeeds to restart debugging this MVC project without any error.

Expect: Succeed to restart debugging this MVC project without any error.

Actual: An error occurs when restarting debugging this MVC project. image

More Info:

  1. This issue does not reproduce after clicking "Restart" button during F5ing.
  2. This issue also reproduces for Python project with the below error. image
bwateratmsft commented 11 months ago

Restart most likely will not work but we should definitely have better error messages.

bwateratmsft commented 11 months ago

Both of the issues are external. We could block doing Ctrl+F5 debugging, but I feel like that's a heavy-handed way of solving the issue. Instead I think the best solution is just "don't do that".