Emulator controls
The CodeBug emulator is great for debugging your code because it allows you to see what your code will make CodeBug do before loading it onto your bug. The emulator has a couple of controls which you may not have tried before, the Pause and the Step Through buttons.
The Pause button will pause the emulator on the current block highlighted.
The Step Through button will run one block each time it is pressed and then pause after that block has been run. This is really useful for knowing exactly what your program does as time progresses.