Products & Services Solutions Academia Support User Community Company

Learn more about Communications Toolbox   

Debug Mode

When you run a system that is not attached to an Error Rate Test Console, the system is running in debug mode. Debug mode is useful when evaluating or debugging the code for the system you are designing.

A system that extends the testconsole.SystemBasicAPI class can run by itself, without the need to attach it to a test console. This scenario is referred to as debug mode. Debug mode is useful when evaluating or debugging the code for the system you are designing. For example, if you define break points when designing your system, you can run the system in debug mode and confirm that the system runs without errors or warnings.

Implementing A Default Input Generator Function For Debug Mode

If your system registers a test input and calls the getInput method at simulation run time then for it to run in debug mode, the system must implement a default input generator function. This method should return an input congruent to the test console.

input = generateDefaultInput(obj)

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS