Contents Previous Next Subchapters

Stepping Over Function Calls
Syntax next
See Also step , trace and continue
Abbreviation n
Menu Command Debug | Next

Description
Executes one O-Matrix line in the current function, or main program, and lists the current file with an arrow pointing to the next execution line.


The lighting bolt icon in the toolbar can be used to execute the debugger next command.

Example
If you enter
     clear
     function f(x) begin
          return 2 * x
     end
     for i = 1 to 3 begin
          stop
          print f(i)
     end
O-Matrix will activate the Debugger window with the arrow pointing to the stop statement. If you then enter
     next
O-Matrix will display an arrow pointing to the print statement. If you then enter
     next
O-Matrix will print 2 (the value of f(1)) in the Command window and show the arrow pointing to the end statement in the Debugger window. Note that if your last debugger command were step, instead of next, O-Matrix would have stopped inside the function f(x).