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 Core project with "Docker .NET Attach (Preview)" configuration #4208

Closed v-ruizh closed 5 months ago

v-ruizh commented 5 months ago

OS: Win 10 Build Version: 20240117.1 .NET Core SDK: 8.0.101

Repro Steps:

  1. Create a .NET Core MVC project by "dotnet new mvc --no-https".
  2. F1 --> Type and select "Docker: Add Docker Files to Workspace" --> ASP.NET Core --> Linux --> Include optional Docker Compose files.
  3. Right click the docker-compose.debug.yml --> Select "Compose Up".
  4. Open launch.json and click "Add Configration…" -> Choose "Docker .NET Attach (Preview)".
  5. Debug this project with "Docker .NET Attach (Preview)" configuration, select the running container and click "yes" to copy the debugger to the container.
  6. Check whether succeeds to debug this project or not.

Expect: Succeed to debug this project.

Actual: Fail to debug this project with an error. image

More Info: The container is stopped automatically during debugging.

bwateratmsft commented 5 months ago

Exit code 137 indicates something was terminated because of memory usage. Is your system out of available memory?

v-ruizh commented 5 months ago

I created a new VM, this issue does not reproduce on the new VM.