To execute the program further, we have to step through the lines. For controlling execution, we have different commands. We will discuss some essential and basic ones in this section:
- next [count]: This is used to continue execution to the next source line, stepping over function calls. The count argument controls how many times it repeats this action.
- return [value]: This cancels the execution of the current function call (frame). If any current function contains any inner frames, they are discarded as well. If the value (string or number) is specified, it is used as a function return value.
- finish: Execute until the selected stack frame returns and print the returned value.
- Continue: Resume the program execution ...