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

Deadlock When Debugging ASP.NET Core #4105

Closed perspectivism closed 1 year ago

perspectivism commented 1 year ago

Steps to Reproduce:

  1. Follow the tutorial for "ASP.NET Core in a container" (on a Windows machine with WSL2 as the Docker backend): https://code.visualstudio.com/docs/containers/quickstart-aspnet-core
  2. Attempt to debug the container
  3. Notice that the debugger deadlocks and the application is never started
perspectivism commented 1 year ago

I figured out what's happening. Specifically, when the VSCode project is located within a directory containing non-ASCII characters, it results in a debugger deadlock. Here are the updated steps to reproduce:

  1. Create a folder using Unicode characters, ex~ mkdir C:\Users\Ažb\src
  2. Follow the tutorial for "ASP.NET Core in a container" using the folder created in step 1 (on a Windows machine with WSL2 as the Docker backend): https://code.visualstudio.com/docs/containers/quickstart-aspnet-core
  3. Attempt to debug the container
  4. Notice that the debugger deadlocks and the application is never started
bwateratmsft commented 1 year ago

This sounds like it's an issue with the C# debugger. Can you file an issue in their repo?

perspectivism commented 1 year ago

It does sound like an issue with the VSCode C# debugger, as I did not experience any Unicode issues with the same project opened in Visual Studio 2022.