How to get dotCover logs Follow
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 integrated in Visual Studio
- dotCover in Rider
- dotCover standalone
- dotCover console runner
- dotCover dotnet global tool
dotCover integrated in Visual Studio
To take dotCover logs
- Start Visual Studio with the following command line argument:
/ReSharper.LogFile C:\log\dotcover_log.txt /ReSharper.LogLevel {Level}
Where: - C:\log\dotcover_log.txt : path to the resulting log file;
- {Level} : log level. In most of cases Verbose level is enough, so please use it as a default level besides cases when one explicitly asked you to collect logs with Trace level.
For example, to run Visual Studio 2015:
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" /ReSharper.LogFile C:\log\resharper_log.txt /ReSharper.LogLevel Verbose
- Reproduce your issue.
By default, if you do not specify path to the log file in step 1, the file will be saved to the %Temp%\JetLogs folder under auto-generated names. Note that in this case /ReSharper.LogFile must be the last argument.
To take dotCover core logs
- Delete the %Temp%\JetLogs folder if it exists.
- Close any open Visual Studio instances with integrated dotCover.
- Start Visual Studio.
- 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 (do not check any settings in the Log flags section unless you were asked by the dotCover support team!).
- Click Save.
- Click Run to run coverage analysis.
Log files will be saved to the %Temp%\JetLogs folder under auto-generated names.
dotCover in Rider
-
Navigate to Help | Diagnostic tools | Choose Trace Scenarios and enable scenarios for DotCover and DotCoverExternalProcess;
-
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
- Start dotCover with the following command line arguments:
/LogLevel={Level} /LogFile=C:\log\dotcover_log.txt
Where: - {Level} : log level. In most of cases Verbose level is enough, so please use it as a default level besides cases when one explicitly asked you to collect logs with Trace level;
- C:\log\dotcover_log.txt : path to the resulting log file.
For example:
%LocalAppData%\JetBrains\Installations\dotCover09\dotCover.Shell.exe /LogLevel=Verbose /LogFile=C:\log\resharper_log.txt
- Reproduce your issue.
By default, if you do not specify path to the log file in step 1, the file will be saved to the %Temp%\JetLogs folder under auto-generated names.
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.
- Click the Expert options button.
- Check Enable logs (do not check any settings in the Log flags section unless you were asked by the dotCover support team!).
- Click Save.
- Click Run.
- Reproduce your issue.
Log files will be saved to the %Temp%\JetLogs folder under auto-generated names.
dotCover console runner
To take dotCover logs
- Start dotCover console runner with the following command line arguments:
/LogLevel={Level} /LogFile=C:\log\dotcover_log.txt
Where: - {Level} : log level. In most of cases Verbose level is enough, so please use it as a default level besides cases when one explicitly asked you to collect logs with Trace level;
- C:\log\dotcover_log.txt : path to the resulting log file.
For example:
%LocalAppData%\JetBrains\Installations\dotCover09\dotCover.exe /LogLevel=Verbose /LogFile=C:\log\resharper_log.txt
- Reproduce your issue.
To take dotCover core logs
- Start dotCover console runner with the additional command line argument: /CoreLogMask=[masks]
Where [masks] is a string with core log masks separated with a semicolon (;). Normally, the dotCover support team provides you with the core log masks you should specify.
For example:
%LocalAppData%\JetBrains\Installations\dotCover09\dotCover.exe /LogLevel=Verbose /CoreLogMask=PdbGt;MetaDataGt;PdbBridge /LogFile=C:\log\resharper_log.txt - Reproduce your issue.
dotCover dotnet global tool
To take dotCover logs
- Start dotCover console runner with the following command line arguments:
--dcLogLevel={Level} --dcLogFile=C:\Temp\dotcover_log.txt
Where: - {Level} : log level. In most of cases Verbose level is enough, so please use it as a default level besides cases when one explicitly asked you to collect logs with Trace level;
- C:\Temp\dotcover_log.txt : path to the resulting log file.
For example:
$ dotnet dotcover test --dcLogLevel=VERBOSE --dcLogFile=dotcover.log
- Reproduce your issue.
dotCover console runner in JetBrains TeamCity
To take dotCover logs
- Open your build configuration in TeamCity.
- Add a new parameter teamcity.agent.dotCover.log with the value %system.teamcity.build.tempDir%/dotCoverLogs.
- Run the build.
- In build artifacts, choose show hidden artifacts and find the file .teamcity/.NETCoverage/dotCoverLogs.zip.
To take dotCover core logs
- Open your build configuration in TeamCity.
- Add a new parameter teamcity.agent.dotCover.log with the value %system.teamcity.build.tempDir%/dotCoverLogs.
- Open the required code coverage build step.
- In Additional dotCover.exe arguments, specify /CoreLogMask=MetaDataGt;InstrumentationGt;PdbGt;PdbBridge
- Run the build.
- In build artifacts, choose show hidden artifacts and find the file .teamcity/.NETCoverage/dotCoverLogs.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