Quantcast
Channel: opencppcoverage Discussions Rss Feed
Viewing all articles
Browse latest Browse all 235

New Post: My program crashes when start with OpenCPPCoverage

$
0
0
Hello,
You can see surprising coverage results when the target is compiled with optimization because there can be a big difference between the source code and the generated code.
You should have the same behavior as if you try to debug an optimized code. If you can put a breakpoint on a line in an optimized code, OpenCppCoverage should be able to consider this line too.

If you run OpenCppCoverage with --verbose, you can see in the log which lines are ignored by the option --optimized_build (Search for "Optimized build support ignores line").

There is one known issue as explained in the documentation: "In rare cases, this heuristic can exclude a valid line when you rethrow an exception in a catch block."

I hope this will help,

OpenCppCoverage

Viewing all articles
Browse latest Browse all 235

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>