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.
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
All project types on all supported operating systems.