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. The line is truncated according to the current values of PRINTWIDTHLIMIT and PRINTDEPTHLIMIT.

Whenever a stepped variable is "shadowed", a message to this effect is printed to the commander's Output/Command-Recall box. A variable is shadowed whenever a variable of the same name is created with the LOCAL command or when a procedure is invoked that has an input with the same name. If the variable was shadowed by LOCAL, then the instruction line that caused the shadowing is printed after the message. This instruction line is truncated according to the current values of PRINTWIDTHLIMIT and PRINTDEPTHLIMIT.

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

STEP "MYPROGRAM
MYPROGRAM
Each line of MYPROGRAM is displayed and waits for OK to continue to next line.
UNSTEP "MYPROGRAM
MYPROGRAM
See Also
UNSTEP
Workspace Queries

SourceForge.net Logo