Stop is a programmatic alternative to setting a breakpoint and suspends the execution. When the debugger finds Stop statement, it breaks execution of the program.
Note: Unlike End, it does not close any files or clear any variables.
Example:
Dim i As Integer
Dim j As IntegerFor i = 1 To 100
j = i + 1
Stop
Next i