Debugging - The Step-by-Step Mode
-
Prerequisite
Sequential Ordering of Blocks
When you run a program, all the blocks are played according to their “Sequential Order”. That means all the blocks are played ‘one by one’ from ‘top to bottom’, according to their position in the program.
For example, the block at step 1 in the sequence will play first, and the block at step 2 will play next, and so on.
Step by Step Mode
The best way to learn about the sequential ordering of blocks is to use the “Step by Step Mode”. In this mode, blocks play out one at a time.
Turn on Step by Step Mode
Click on the orange triangle to start the step by step mode, then click on it again to play the next block.
Each time, one block is played out, then it is highlighted in green.
Stop or Exit the Step by Step Mode
You can click on the red stop button to exit the step by step mode, or click on the green flag to play the program normally.
-
-
-