Sets or clears a breakpoint at an address.
![Read syntax diagram](./c.gif)
>>-SET--BREak--+-ON--+--+---------+--+----------------+--------><
'-OFF-' '-address-' | .------------. |
| V | |
'---|--command-+-'
- ON
- Set the breakpoint.
- OFF
- Clear the breakpoint.
- address
- The address at which the breakpoint is set.
If an expression, the expression is used to provide the address.
If omitted, the address is determined
from the cursor position.
If it is not possible
to determine an address from the cursor position (for example,
when the cursor is on the command line and the command line is empty),
then an error.
- command
- A command that is executed when the breakpoint is taken, before
control is returned to the user.
Many commands can be specified at the end of the SET BREAK command,
separated from the address and each other by a vertical bar (|).
If a command receives a non-zero return code, the remaining
commands in the list are not executed.
See also BREAK.
Examples
SET BREAK ON ALLOPEN+8
SET BREAK OFF 4(R2)
SET BREAK ON MOON | SET MSG Houston... the Eagle has landed.