Stepping Through a Project in VIQC Virtual Skills

The Project Stepping feature provides the user with important visual cues that help troubleshoot or better understand a project's flow. When a project is run, Fling, 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.

The following article will cover:


How to Use the Project Stepping Feature

step_icon.png

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

first_block.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.

second_block.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

example_with_mistake.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 Fling to intake a Ball and score the Ball in the High Goal. However the turn in the project is turning in the wrong direction, and thus the Ball will not be scored in the High Goal.

highlighted_mistake.png

mistake_visual.png

Run the project step by step using the Project Stepping feature until a mistake is observed.

turn_dropdown.png

corrected_mistake.png

Correct the mistake.

The mistake in this example was that Fling was coded to turn left 155 degrees, however this direction does not put Fling at the correct angle for the Catapult to shoot the Ball into the High Goal. The turn direction should be changed from left to right.

final_block.png

Screen_Shot_2021-06-22_at_3.11.30_PM.png

Then run the project again from the beginning using the Project Stepping feature. Repeat this process until the project runs correctly.