break

Insert breakpoint before specified method

Syntax

break
b
break m:mid

break mdl
break mdl [mth] [tid:TID]
break <sysIdx:blkIdx | gcb> [mth] [tid:TID]
break <(taskIdx)sysIdx:blkIdx | gcb> 
break <s:sysIdx | gcs> [mth] [tid:TID]
break modelName [mth] [tid:TID]
break modelName < (taskIdx)sysIdx:blkIdx> [mth] [tid:TID]

Arguments

mid

Method ID

sysIdx:blkIdx

Block ID

gcb

Currently selected block

sysIdx

System ID

gcs

Currently selected system

modelName

Currently selected model

mth

A method name, e.g., Outputs.Major

TID

task ID

mdl

Given model

Description

break inserts a breakpoint before the current method.

Instead of break, you can use the short form of b with any of the syntaxes.

break mdl breaks at each method of model (mdl). mdl refers to the top model.

break mdl [mth] [tid:TID] breaks at the method [mth] at tid (TID) of model (mdl).

break m:mid inserts a breakpoint before the method specified by mid (see “Method ID”).

break sysIdx:blkIdx inserts a breakpoint before each invocation of the method of the block specified by sysIdx:blkIdx (see “Block ID”) in major time steps. break gcb inserts a breakpoint before each invocation of a method of the currently selected block (see gcb) in major times steps.

break s:sysIdx inserts a breakpoint at each method of the root system or nonvirtual subsystem specified by the system ID: sysIdx.

Note

The systems command displays the system IDs for all nonvirtual systems in the currently selected model.

break gcs inserts a breakpoint at each method of the currently selected nonvirtual system.

break model inserts a breakpoint at each method of the currently selected model.

Note

Do not use a model name instead of identifier model in the break model command.

The optional mth parameter allow you to set a breakpoint at a particular block, system, or model method. For example, break gcb Outputs sets a breakpoint at the Outputs method of the currently selected block.

The optional TID parameter allows you to set a breakpoint at the invocation of a method by a particular task. For example, suppose that the currently selected nonvirtual subsystem operates on task 2 and 3. Then break gcs Outputs tid:2 sets a breakpoint at the invocation of the subsystem's Outputs method that occurs when task 2 is active.

break <(taskIdx)sysIdx:blkIdx | gcb> breaks at each method of block ((taskIdx)sysIdx:blkIdx).

break modelName < (taskIdx)sysIdx:blkIdx> [mth] [tid:TID] breaks at the method [mth] at tid (TID) of block ((taskIdx)sysIdx:blkIdx) in the model (modelName).

Introduced before R2006a