lang • stop

STOP

STOP

Stop the program and wake up the debugger, as if there was a breakpoint on the current line.

This instruction does nothing if the program is not being debugged.

In Visual Basic™ the STOP statement terminates program execution. Use QUIT for that purpose in Gambas.

Example

' Stop if the following condition is true
If Name = "Gates" Or Name = "Ballmer" Then Stop

See also