Debugging Strategies
Before you perform code verification, choose a debugging strategy for detecting and correcting noncompliant code in your MATLAB® applications, especially if they consist of many MATLAB files that call each other's functions. The following table describes two general strategies, each of which has advantages and disadvantages.
Debugging Strategy | What to Do | Pros | Cons |
---|---|---|---|
Bottom-up verification |
|
| Requires application tests that work from the bottom up |
Top-down verification |
| You retain your top-level tests | Introduces extraneous code that you must remove after code verification, including:
|