Skip to Main Content Skip to Search
Product Documentation

bafter - Insert breakpoint after specified method

Syntax

bafter
bafter m:mid
bafter <sysIdx:blkIdx | gcb> [mth] [tid:TID]
bafter <s:sysIdx | gcs> [mth] [tid:TID]
bafter mdl [mth] [tid:TID]

Short Form

ba

Arguments

mid

Method ID

sysIdx:blkIdx

Block ID

gcb

Currently selected block

sysIdx

System ID

gcs

Currently selected system

mdl

Currently selected model

mth

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

TID

Task ID

Description

bafter inserts a breakpoint after the current method.

bafter m:mid inserts a breakpoint after the method specified by mid (see "Method ID").

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

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

bafter gcs inserts a breakpoint after each method of the currently selected nonvirtual system.

bafter mdl inserts a breakpoint after each method of the currently selected model.

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

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

See Also

break | clear | ebreak | nanbreak | rbreak | slist | systems | tbreak | where | xbreak | zcbreak

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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