FineCodeCoverage
FineCodeCoverage copied to clipboard
Test debugging not possible
Installed product versions
- Visual Studio: 2022 version 17.9.3
- This extension: 1.1.213
- Google test 1.12.2
Description
When the extension is enabled, I get several exceptions when i start the test debug session
Steps to recreate
- Enable the extension
- set a breakpoint in a google test
- in test explorer, debug the test
- several exceptions are thrown: breakpoint instruction executed (no file available), access violation in xstring line 398,
Current behavior
Debugging not possible when the extension is enabled
Expected behavior
One should be able to debug the tests also if the extension is enabled
Side Notes
- when the extension is disabled, debugging is possible with no problems
C++ is not properly supported. The extension is made for C# and VisualBasic.
I am not sure if this is FCC related. From https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/ide/troubleshooting-code-coverage ( which is not using FCC )
For C++ projects, ensure that the generated .pdb files have full debug information. Open the project properties and verify that Linker > Debugging > Generate Debug Info is set to Generate Debug Information optimized for sharing and publishing (/DEBUG:FULL).
Does this help ?
Hi Tony no it doesn't help for the exception but it was anyway helpful because now I see the proper coverage in my source file (before it was not completely correct). Actually the C++ support is not bad at all, but I've not tested thoroughly. Thank you!
Although not related to this issue I thought that you might want to check thise section https://learn.microsoft.com/en-us/visualstudio/test/customizing-code-coverage-analysis?view=vs-2022#static-and-dynamic-native-instrumentation