Regular breakpoints suspend the execution of a thread before a line of code or method is executed. Regular breakpoints include:
- Line - Suspends the thread execution when the line of code it applies to is executed.
- Method - Suspends the thread execution when the method that it applies to, is entered or exited (or both).
The following figure shows an editor window and the marker bar to the left of the source code. Breakpoint icons appear in this marker bar.
Figure 1. Setting regular breakpoints
Note: You can add a breakpoint while debugging your project. Double-click the marker bar to the left of a source code line to set a breakpoint at that line.