MC-Basic:ADDBREAKPOINT

From SoftMC-Wiki
Revision as of 16:09, 13 December 2010 by Arwiebe (talk | contribs) (1 revision)
Jump to: navigation, search

This command inserts a breakpoint in the task or Library Functions/Subroutines at the specified program line number. When the breakpoint is reached, the MC halts execution of the task and sends a message to the host that the breakpoint has been reached.

When a breakpoint is reached, the task switches to the idle state. Program execution is continued by issuing the CONTINUETASK command, or by using the program debugging commands: STEPIN, STEPOVER, and STEPOUT.

Short form

ABPoint

Syntax

AddBreakPoint <file name> <program line number> {<taskname>}

Availability

Up to 0. 4.2.1 version

Type

<program line number>: Long

Range

<file name>: Name of a task that is loaded in memory (May be program or library)
<program line number>: 1 to MaxLong

{<taskname>} : Name of program , using  that is loaded in memory .

                             It's the option , what is usefull for library, where taskname and file name are not the same. If task name is not specified breakpoint will be valid (global) for all the tasks that pass  through specified file and line.

Scope

Terminal

Limitations

Write-Only. The task must be loaded into memory.

Examples

AddBreakPoint MAKECUT.prg 20

AddBreakPoint user.lib 1001 mytask.prg

See Also