Difference between revisions of "Break"

From Xojo Documentation

(See Also)
(See Also)
Line 25: Line 25:
[[Function]], [[Sub]] statements.
[[Function]], [[Sub]] statements.
[[Category:Language Code Execution]]
[[Category:Language Debugging]]

Revision as of 14:07, 18 January 2019

Language Keyword

When running in the IDE, Break causes the compiler to break into the debugger. In a compiled app, it has no effect.




The Break keyword has the same effect as setting a breakpoint in the Code Editor. Break statements are ignored in built apps.

Sample Code

Display the debugger when the loop counter reaches 5:

For i As Integer = 1 To 10
If i = 5 Then Break // Display debugger when i reaches 5

See Also

Function, Sub statements.