STEP

Synopsis
STEP contentslist
Description

Marks the items in the contents list for stepping. Whenever a stepped procedure is invoked, each instruction line in the procedure body is displayed in a dialog box before being executed and FMSLogo waits for the user to press the OK button before continuing. A dialog box is displayed whenever a stepped variable name is "shadowed". A variable is shadowed when a variable of the same name is created with the LOCAL command or when a procedure is invoked that inputs a parameter with the same name.

STEP has no effect on property lists.

STEP does not throw an error if it is asked to step a procedure or variable that is not in the workspace, but doing so has no effect. STEP also does not throw an error if asked to step a primitive, but this also has no effect.

See the Workspace Queries section for an explanation of the contentslist input.

You can step all procedures and variables with the Step Button.

Example
TO MYPROGRAM
  FORWARD 10
  RIGHT   90
  FORWARD 20
  LEFT    90
END

MYPROGRAM
STEP "MYPROGRAM
Each line of MYPROGRAM will be displayed and will wait for OK to continue to next line.
UNSTEP "MYPROGRAM
MYPROGRAM

SourceForge.net Logo