Main Content


Clear breakpoint in simulation debugging session


clear clears the breakpoint from the current method.


This function is supported only for simulation debugging sessions started programmatically using the sldebug function or using the sim function with the 'debug' name-value argument.

clear m:mid clears the breakpoint from the method with the method ID mid.

clear brID clears the breakpoint with the breakpoint ID brID.

clear blk clears all breakpoints from the block blk.

Input Arguments

collapse all

Method from which to remove breakpoint, specified as a method ID.

Breakpoint ID for breakpoint to remove, specified as a breakpoint ID.

Block from which to remove all breakpoints, specified using one of these options:

  • (t)s:b — Block ID, where t is the index of the task in which the block executes, s is the index of the system that contains the block, and b is the index of the block within the system

  • gcb — Current block

Version History

Introduced before R2006a