Main Content

Stateflow.DataDebug

Debugger properties for data

    Description

    Use a Stateflow.DataDebug object to specify the debugger properties for a data object.

    Creation

    Each data object has its own Stateflow.DataDebug object. To access the Stateflow.DataDebug object, use the Debug property for the Stateflow.Data object.

    Properties

    expand all

    Stateflow® API objects have properties that correspond to the values you set in the Stateflow Editor. To access or modify a property, use dot notation. To access or modify multiple properties for multiple API objects, use the get and set functions, respectively. For more information, see Modify Properties and Call Functions of Stateflow Objects.

    Whether to track the value of the data object in the Breakpoints and Watch window, specified as a numeric or logical 1 (true) or 0 (false). For more information, see View Data in the Breakpoints and Watch Window.

    Examples

    collapse all

    Access the Stateflow.DataDebug object for the Stateflow.Data object x.

    debug = x.Debug;

    Add the data object to the Breakpoints and Watch window.

    debug.Watch = true;
    Introduced before R2006a