Contents Previous Next Subchapters

Skipping Breakpoints
Syntax break indexskip
See Also debugger break
Abbreviation b Menu Command
Debug | Skip Breakpoint . . .

Description
Sets the number of times to skip the breakpoint with the specified index.

Example
If the file TEMP.OMS in the current working directory contains
     clear
     function fac(n) begin
          f = 1
          for i = 1 to n begin
               f = f * i
               print i
          end
          return f
     end
and at the DEBUG> prompt you enter If you enter
     file TEMP.OMS
     list 1 7
O-Matrix will display the TEMP.OMS file with line number 5 corresponding to the statement f = f * i. If you enter
     dall
     break 5
     break
O-Matrix will respond
    index     skip     line   file                                    
        1        0        5   C:\OMWIN\TEMP.OMS                       
(the actual file name will depend on the current directory). Entering
     break 1 3
will instruct O-Matrix to skip the breakpoint, with index one, three times. If you enter
     continue
O-Matrix will activate the Command window and display the O> prompt. If you continue with
     include TEMP.OMS
     print fac(5)
O-Matrix will print
     1
     2
     3
in the Command window and then activate the Debugger window with the arrow pointing to the statement
     f = f * i
and a message identifying the index of the breakpoint that caused it to stop. If you then enter
     continue
O-Matrix will print
     4
in the Command window and then stop. If you then enter
     continue
O-Matrix will respond
     5
     120
in the Command window, because 120 is the value of fac(5).