Difference between revisions of "MC-Basic:ADDBREAKPOINT"

From SoftMC-Wiki
Jump to: navigation, search
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:ADDBREAKPOINT}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 4: Line 5:
  
 
|SYNTAX=
 
|SYNTAX=
AddBreakPoint ''<file name>'' ''<program line number> {<taskname>}''
+
AddBreakPoint <''file name''> <''program line number''> {<''taskname''>}
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Line 10: Line 11:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
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.
+
This command inserts a breakpoint in the task or library functions/subroutines at the specified program line number. When the breakpoint is reached, the softMC 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.
+
When a breakpoint is reached, the task switches to the idle state. Program execution is resumed by issuing the CONTINUETASK command, or by using the program debugging commands: STEPIN, STEPOVER, and STEPOUT.
  
 
|TYPE=
 
|TYPE=
''<program line number>'': Long
+
<''program line number''>: Long
  
 
|RANGE=
 
|RANGE=
''<file name>'': Name of a task that is loaded in memory (May be program or library) <br>
+
<''file name''>: Name of a task that is loaded in memory (May be program or library) <br>
''<program line number>'': 1 to MaxLong
+
<''program line number''>: 1 to MaxLong<br>
 +
{<''taskname''>}: Name of program, <font color="red"> using that is loaded in memory.
  
''{<taskname>}'' : Name of program , using  that is loaded in memory .
+
''                             ''It's the option, what is useful for library, where taskname and file name are not the same. If the task name is not specified, breakpoint will be valid (global) for all the tasks that pass through the specified file and line.</font color>
 
 
''                             ''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.
 
  
 
|UNITS=
 
|UNITS=
Line 35: Line 35:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Write-Only. The task must be loaded into memory.
+
Write only. The task must be loaded into memory.
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 43: Line 43:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:CLEARBREAKPOINT|CLEARBREAKPOINT]]
+
* [[MC-Basic:CLEARBREAKPOINT|CLEARBREAKPOINT]]
* [[Axystems:MC-Basic:CONTINUETASK|CONTINUETASK]]
+
* [[MC-Basic:CONTINUETASK|CONTINUETASK]]
* [[Axystems:MC-Basic:STEPIN|STEPIN]]
+
* [[MC-Basic:STEPIN|STEPIN]]
* [[Axystems:MC-Basic:STEPOUT|STEPOUT]]
+
* [[MC-Basic:STEPOUT|STEPOUT]]
* [[Axystems:MC-Basic:STEPOVER|STEPOVER]]
+
* [[MC-Basic:STEPOVER|STEPOVER]]
 
* [[AXY:MC-Basic:SERCMAXPOS|SERCMAXPOS]]
 
* [[AXY:MC-Basic:SERCMAXPOS|SERCMAXPOS]]
 
* [[AXY:MC-Basic:SERCMINPOS|SERCMINPOS]]
 
* [[AXY:MC-Basic:SERCMINPOS|SERCMINPOS]]
 
+
[[Category:MC-Basic:Debug Tools|ADDBREAKPOINT]]
 
}}
 
}}

Latest revision as of 03:03, 17 April 2017

Language: English  • 中文(简体)‎

This command inserts a breakpoint in the task or library functions/subroutines at the specified program line number. When the breakpoint is reached, the softMC 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 resumed 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 useful for library, where taskname and file name are not the same. If the task name is not specified, breakpoint will be valid (global) for all the tasks that pass through the 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