Main Content

Enable C/C++ code coverage

Analysis of C/C++ code coverage

Since R2023a

Description

App Configuration Pane: Debugging

Configuration Objects: coder.EmbeddedCodeConfig

Coverage analysis of both generated C/C++ code and custom C/C++ during a software-in-the-loop (SIL) or processor-in-the-loop (PIL) execution.

To use this name-value argument, you must have a MATLAB® Test™ license.

Settings

Off

This value is the default value.

Disables code coverage analysis during a SIL or PIL execution.

On

Instruments C/C++ code for coverage analysis in the SIL or PIL application.

Programmatic Use

Property: CodeCoverage
Values: false | true
Default: false

Version History

Introduced in R2023a