Working with Profiles : Setting the Target Configuration : Code Generation Options : Code Instrumentation : Debug

Debug

The Debug option allows you to include code that will print to the window the state the application is in for each level of detail in the statechart. (Level 1 means that each super-step is reported, while Level 2 means that each step is reported.)

When the Debug check box is selected, you can define the following debug settings:

Debug Level 1

The state the application is in will be reported at the end of every superstep of the state machine (stable state).
Debug Level 2

The state the application is in will be reported at the end of every step of the state machine.
State Dumper File

The text box next to the radio buttons contains the name of the source code file for the implementation of the debug functions. If you prefer to use debug code that you have modified, type in the name of the appropriate source code file, or click ... to browse for the file.