Keyword

Break


Description

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

Usage

Break

Notes

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
Next

Compatibility

All project types on all supported operating systems.

See also

Function, Sub statements.