FineCodeCoverage icon indicating copy to clipboard operation
FineCodeCoverage copied to clipboard

Test debugging not possible

Open davidefer opened this issue 11 months ago • 3 comments

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

  1. Enable the extension
  2. set a breakpoint in a google test
  3. in test explorer, debug the test
  4. 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

davidefer avatar Mar 15 '24 12:03 davidefer

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 ?

tonyhallett avatar Mar 15 '24 12:03 tonyhallett

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!

davidefer avatar Mar 15 '24 13:03 davidefer

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

tonyhallett avatar Mar 23 '24 13:03 tonyhallett