47
Single Step: xx
To single step through only the procedure or flowchart that you are currently working with in the edit
area, select Single Step: xx (the current procedure or flowchart’s name) from the Debug menu.
Breakpoints
Note: This option is only available when the K’NEX Computer Control software is set to Level 2.
Breakpoint is an advanced debugging tool which can be used to stop and pause a program when a
certain symbol is reached. From the symbol you can single-step through the program to locate the
error. You can have as many breakpoints in a program as required.
This feature is particularly useful in large complex programs, where you know the error occurs around
a certain point. Rather than having to single-step through many symbols to get to the problem area,
the program can auto run up to the defined point and then stop to allow tracing to begin.
1. If the Selection tool isn’t already active, click to select. Click on the Start/Stop icon to start your
program running.
2. When it gets to the part when the program goes wrong click on the Pause button to immediately
stop the program running.
3. Select the relevant procedure or flowchart to the edit area (either by
clicking on it in the map or from the selector toolbar).
4. Right click in the relevant symbol and select BreakPoint. The top left
edge of the symbol will be marked by a red B.
5. Once a breakpoint has been set the program will automatically pause
its run when it reaches the breakpoint.
6. Click on Resume for the program to continue.
Remove breakpoints
To remove breakpoints individually, right click on the relevant symbol and
deselect the Breakpoint tick
To remove all breakpoints from a program, select Clear Breakpoints from
the Debug menu.
Start without breakpoints
If you want to keep the breakpoints in place but to run your program
without the breakpoints being applied, deselect Use Breakpoints from the
Debug menu.
Follow Flowchart
If Follow Flowchart (Debug menu) is ticked then the progress of whichever flowchart is currently
selected to the edit area will be followed in detail through all procedures.
back to Table of Contents