Question
How to get dotCover logs?
Answer
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.
Note, the instructions below include additional steps for dotCover core logs. These steps are only necessary when explicitly requested by our support team for advanced troubleshooting. For most issues, you can skip these log collection procedures.
Choose an article section corresponding to your environment:
- dotCover in Visual Studio
- dotCover in Rider
- dotCover standalone
- dotCover console runner
- 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 in command line with ReSharper.LogLevel argument:
devenv.exe /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 in command line with ReSharper.LogLevel argument:
devenv.exe /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 in command line with the following arguments:
/LogLevel=Trace. The default installation path is%LOCALAPPDATA%\JetBrains\Installations, e.g.%LOCALAPPDATA%\JetBrains\Installations\dotCover252\dotCover.UI.64.exe - 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:
--log-file <LogFilePath>, e.g.dotCover cover --log-file "C:\log\dotcover_log.log" -- test "test.csproj" - 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 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.logand 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=Traceor--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.
Comments
0 comments
Please sign in to leave a comment.