Skip to content

Commit 968b0dd

Browse files
Added wsl reboot instructions to debugging documentation (#5508)
1 parent 7cce1a6 commit 968b0dd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/community/contributing/debugging.md

+21
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,27 @@ memory=2GB # Limits VM memory in WSL 2 up to 2GB
9292
processors=2 # Makes the WSL 2 VM use two virtual processors
9393
```
9494

95+
#### Rebooting `wsl` With Updated Settings
96+
97+
Once you've made your changes to `.wslconfig` you'll need to reboot your instance for them to take effect.
98+
99+
You can list all of your `wsl` distributions via `wsl -l` or `wsl --list`:
100+
101+
```shell
102+
Windows Subsystem for Linux Distributions:
103+
Ubuntu (Default)
104+
docker-desktop-data
105+
docker-desktop
106+
```
107+
108+
In this case we need to terminate our default `Ubuntu` `wsl` instance:
109+
110+
```shell
111+
wsl --terminate Ubuntu
112+
```
113+
114+
The next time we try to launch `wsl` our `.wslconfig` settings will be active inside the environment.
115+
95116
### Repeating a Test Until It Fails
96117

97118
If you're using JetBrains Rider, you can use their unit test feature to run a test until it fails.

0 commit comments

Comments
 (0)