You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/Troubleshooting.md
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -199,4 +199,17 @@ Fire attach
199
199
System.Diagnostics.Debugger.Launch();
200
200
```
201
201
202
+
If you want debug in-process collector you need to set VSTEST_HOST_DEBUG(https://github.com/microsoft/vstest/issues/2158) environment variable
203
+
```
204
+
set VSTEST_HOST_DEBUG=1
205
+
```
206
+
Test host will wait for debugger
207
+
```
208
+
Starting test execution, please wait...
209
+
Logging Vstest Diagnostics in file: C:\git\coverletissue\collectorlog\XUnitTestProject1\log.txt
210
+
Host debugging is enabled. Please attach debugger to testhost process to continue.
211
+
Process Id: 800, Name: dotnet
212
+
```
213
+
202
214
**Every time you update code and rebuild new package remember to remove local nuget cache(`RMDIR "C:\Users\[winUser]\.nuget\packages\coverlet.collector" /S /Q`) otherwise you'll load old collector code because the package version wasn't changed**
0 commit comments