| Simulink Reference | ![]() |
Insert a breakpoint before a specified method.
Syntax
break break m:midbreak <sid:bid| gcb> [mth] [tid:TID] break <s:sid| gcs> [mth] [tid:TID] break mdl [mth] [tid:TID]
Arguments
mid |
method ID |
sid:bid |
block ID |
gcb |
currently selected block |
sid |
system ID |
| gcs |
currently selected system |
mdl |
currently selected model |
| mth |
a method name, e.g., Outputs.Major |
| TID |
task ID |
Description
break inserts a breakpoint before the current method.
break m:mid inserts a breakpoint before the method specified by mid (see Method ID).
break sid:bid inserts a breakpoint before each invocation of the method of the block specified by sid:bid (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. To break before invocation of a block's methods in minor time steps, execute minor before or after executing this form of the bafter command.
break s:sid inserts a breakpoint at each method of the root system or nonvirtual subsystem specified by the system ID: sid.
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 mdl inserts a breakpoint at each method of the currently selected model.
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.
See Also
bafter, ebreak, tbreak, xbreak, nanbreak, zcbreak, rbreak, clear, where, slist, systems
| bafter | bshow | ![]() |
© 1994-2005 The MathWorks, Inc.