microsoft / microsoft/WSL

WSL 2.5+ slows dotnet when attaching debugger

Open
#13,215 8 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Windows Version

Microsoft Windows [Version 10.0.26100.3624]

### WSL Version

2.6.0.0

### Are you using WSL 1 or WSL 2?

- [x] WSL 2
- [ ] WSL 1

### Kernel Version

_No response_

### Distro Version

Ubuntu 24.04

### Other Software

dotnet 8
vscode (vsdbg)
netcoredbg

### Repro Steps

- Start WSL2
- Start a rather large dotnet8 application
- Attach a debugger, either vsdbg via VScode WSL or netcoredbg

### Expected Behavior

The application should run smoothly or just about the same as before the debugger was attached.

### Actual Behavior

The application is about 100x slower (literally) after the debugger is attached.

### Diagnostic Logs

[acl.txt](https://github.com/user-attachments/files/21034770/acl.txt)
[appxpackage.txt](https://github.com/user-attachments/files/21034775/appxpackage.txt)
[bcdedit.txt](https://github.com/user-attachments/files/21034779/bcdedit.txt)
[HKCU.txt](https://github.com/user-attachments/files/21034771/HKCU.txt)
[HKLM.txt](https://github.com/user-attachments/files/21034777/HKLM.txt)
[optional-components.txt](https://github.com/user-attachments/files/21034767/optional-components.txt)
[P9NP.txt](https://github.com/user-attachments/files/21034768/P9NP.txt)
[windows-version.txt](https://github.com/user-attachments/files/21034778/windows-version.txt)
[Winsock2.txt](https://github.com/user-attachments/files/21034773/Winsock2.txt)
[wpr.txt](https://github.com/user-attachments/files/21034776/wpr.txt)
[wslservice.txt](https://github.com/user-attachments/files/21034772/wslservice.txt)
[wslsupport-impl.txt](https://github.com/user-attachments/files/21034769/wslsupport-impl.txt)
[wslsupport-proxy.txt](https://github.com/user-attachments/files/21034774/wslsupport-proxy.txt)

[WslLogs-2025-07-03_10-13-54.zip](https://github.com/user-attachments/files/23015229/WslLogs-2025-07-03_10-13-54.zip)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the slowdown with the listed WSL 2, Ubuntu 24.04, .NET 8, VS Code vsdbg, and netcoredbg setup. Review the attached diagnostic logs and compare performance before and after debugger attachment; done means the application remains roughly as responsive after attaching either debugger.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
devtools, operating-systems, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.