How to get dotCover logs
In some cases, to troubleshoot your issue, the dotCover support team may ask you to provide dotCover log files. The procedure of taking logs differs depending on the way you run dotCover: in Visual Studio, standalone, or using the console runner. By default, log files are saved to the %Temp%\JetLogs folder.
Choose article section corresponding to your environment:
- dotCover in Visual Studio
- dotCover in Rider
- dotCover standalone
- dotCover console runner
- dotCover dotnet global tool
- dotCover console runner in JetBrains TeamCity
dotCover in Visual Studio
To take dotCover logs
- Close any open Visual Studio instances with integrated dotCover
- Delete the %Temp%\JetLogs folder if it exists.
-
Start Visual Studio with the following command line argument:
/ReSharper.LogLevel Trace
- Reproduce the issue.
- Close the Visual Studio
- Archive the folder %Temp%\JetLogs and share it.
To take dotCover core logs
- Close any open Visual Studio instances with integrated dotCover
- Delete the %Temp%\JetLogs folder if it exists.
-
Start Visual Studio with the following command line argument:
/ReSharper.LogLevel Trace
- Press Ctrl+Shift+Alt, and while holding it, run coverage analysis to reproduce the issue.
- The Coverage Configuration window will be opened.
- In the Coverage Configuration window, press Ctrl+Alt+Shift+F11 to enable expert options.
- Click the Expert options button.
- Check Enable logs and insert the Log Mask (in case it was provided by the dotCover support team).
- Click Save.
- Click Run to run coverage analysis and reproduce the issue.
- Close the Visual Studio
- Archive the folder %Temp%\JetLogs and share it.
dotCover in Rider
To take dotCover logs
-
Navigate to Help | Diagnostic tools | Choose Trace Scenarios and enable scenarios for DotCover and DotCoverExternalProcess;
- Restart Rider;
-
Reproduce the issue;
- Disable Trace scenarios at Help | Diagnostic tools | Choose Trace Scenarios;
- Collect the full log bundle via Help | Collect logs and send the resulting archive.
To take dotCover core logs
- Start Rider in Internal mode
- Go to File | Settings | Build, Execution, Deployment | dotCover
- Specify profiler core log masks provided to you in Core: line.
- Reproduce the issue;
- Remove logs mask at File | Settings | Build, Execution, Deployment | dotCover | Core;
- Collect all Rider logs using Help | Collect Logs menu and send the resulting archive.
dotCover standalone
To take dotCover logs
- Delete the %Temp%\JetLogs folder if it exists.
-
Launch dotCover standalone with the following command line arguments:
/LogLevel=Trace
- Reproduce the issue.
- Close the dotCover.
- Archive the folder %Temp%\JetLogs and share it.
To take dotCover core logs
- Delete the %Temp%\JetLogs folder if it exists.
- Start dotCover standalone.
- Run coverage analysis.
- The Coverage Configuration window will be opened.
- In the Coverage Configuration window, press Ctrl+Alt+Shift+F11 to enable expert options.
- Check Enable logs (do not check any settings in the Log flags section unless you were provided with flags).
- To enable PDB Server logs, scroll down and check Enable PDB Server logs
- Click Save.
- Click Start.
- Reproduce the issue.
Log files will be saved to the
%Temp%\JetLogs
folder under auto-generated names. Take an archive of the whole folder and share it.
dotCover console runner
To take dotCover logs
-
Add the following command line arguments:
/LogLevel=Verbose /LogFile=C:\log\dotcover_log.txt
- Reproduce the issue.
To take dotCover core logs
-
Start dotCover console runner with the additional command line arguments:
/CoreLogMask={value} /PdbServerLogMask={value} /LogLevel=Trace /LogFile=C:\log\dotcover_log.txt
- Reproduce the issue.
dotCover dotnet global tool
To take dotCover logs
-
Start dotCover console runner with the following command line arguments:
--dcLogLevel=Verbose --dcLogFile=C:\Temp\dotcover_log.txt
- Reproduce the issue.
To take dotCover core logs
-
Start dotCover console runner with the additional command line arguments:
--dcCoreLogMask={value} --dcPdbServerLogMask={value} --dcLogLevel=Trace --dcLogFile=C:\log\dotcover_log.txt
- Reproduce the issue.
dotCover console runner in JetBrains TeamCity
To take dotCover logs (TeamCity doc)
- Open build configuration settings in TeamCity.
- Add a build configuration parameter with name
teamcity.agent.dotCover.log
and value%system.teamcity.build.tempDir%/dotCoverLogs
. -
(Optional) If more verbose or core dotCover logs are required, go to Build Steps, edit the settings of the .NET tests step, find the Additional arguments box under the .NET Coverage section, and add the arguments provided by the support team. For example,
--LogLevel=Trace
or--CoreLogMask=MetaDataGt;InstrumentationGt;PdbGt
- Go to build configuration settings | General Settings | Artifact paths, and add this line:
%system.teamcity.build.tempDir%/dotCoverLogs => .teamcity/.NETCoverage/dotCoverLogs.zip
. - Save the settings and run the build.
- On the build results page, go to the Artifacts tab | Show hidden artifacts and find the file
.teamcity/.NETCoverage/dotCoverLogs.zip
.
To take the log of dotCover actions performed on the TeamCity side (TeamCity doc)
- Go to the Build Results page | Build Log tab
- Click Download Log, select Full log or ZIP.
Please sign in to leave a comment.
In the case of internal TeamCity DotCover, you have to add the "ALL APPLICATION PACKAGES" read access rights to the TeamCity installation folder <b><a href="http://www.asbestosservicesglasgow.co.uk">http://www.asbestosservicesglasgow.co.uk</a></b>. If using an external DotCover, add the rights there.
In the case of internal TeamCity DotCover, you have to add the "ALL APPLICATION PACKAGES" read access rights to the TeamCity installation folder http://www.asbestosservicesglasgow.co.uk. If using an external DotCover, add the rights there
Does this work with VS2013?
I tried
devenv /dotCover.LogFile ConsoleApplication3.sln
...and got:
Microsoft Visual Studio 2013 Version 12.0.30501.0.
Copyright (C) Microsoft Corp. All rights reserved.
Invalid Command Line. Unknown Switch : dotCover.LogFile.
...also tried
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" bilby.sln /dotCover.LogFile "C:\log.txt"
...with same error
Hello Micky,
Please try the following command line: devenv.exe /ReSharper.LogFile
Starting with version 3.0, you need to specify another command line argument. This article will be updated.
dotCover console runner in JetBrains TeamCity Doesn't seem to work on TeamCity Enterprise 2017.2.1 (build 50732). The logs aren't showing up as hidden artifacts.
What about rider? How do I get the cover logs?
Hello @BENEDDN
Added https://dotnettools-support.jetbrains.com/hc/en-us/articles/206545979-How-to-get-dotCover-logs#rider