The Project Stepping feature provides the user with important visual that help users to troubleshoot or better understand a project's flow. When a project is run, Snapshot the Hero Bot will run as instructed, but it may not be how the user intended. Having the ability to see the blocks being executed one step at a time gives the user a better visual of which blocks may be causing the error.


How to Use the Project Stepping Feature

Screen_Shot_2022-05-23_at_12.12.21_PM.png

Select the step button located at the top right of the VEXcode IQ toolbar.

Screen_Shot_2022-05-23_at_12.19.06_PM.png

Once selected, a green highlight will appear around the {When started} block to indicate where the program is beginning, and then immediately moves to highlight the first block in the stack. The highlight will stay on the first block after {When started} until the step button is selected again.

Note: the highlight will immediately move past a [Comment] block, because [Comment] blocks do not change the project or blocks surrounding it.

Screen_Shot_2022-05-23_at_12.19.54_PM.png

Select the step button again to run the block that is highlighted. Once the block has been executed, the next block will become highlighted.

Continue to use the step button to run through the project one block at a time.


Debugging with the Project Stepping Feature

Screen_Shot_2022-05-23_at_12.20.22_PM.png

The Project Stepping feature slows down the flow of the project and provides immediate visual feedback. This allows the user to go through the project one block at a time to observe behavior and correct mistakes.

In this example, the intention is for Snapshot to drive to the yellow dispenser and release the disks. However the robot turns to face the fence instead of the dispenser. 

Run the project step by step using the Project Stepping feature until a mistake is observed, then correct the mistake as shown in the video here.

After correcting the mistake, run the project again from the beginning using the Project Stepping feature. Repeat this process until the project runs correctly.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus