5.2 Setting and Removing Breakpoints
To locate logic errors in your program, you can step through your code by pausing execution at breakpoints and checking the values of variables.
To Set a Breakpoint:
- Click in the line of code and do one of the following:
or
- Right-click in the line of code and select Toggle Breakpoint from the shortcut menu.
You can set breakpoints in both debugging and non-debugging mode. After setting a breakpoint, a red circle displays in the left margin next to the line of code.
| Note: The Enable Breakpoints button |
To Remove a Breakpoint:
- Click in the line of code and do one of the followings:
or
- Right-click in the line of code and select Toggle Breakpoint from the shortcut menu.
You can remove breakpoints in both debug and non-debug mode.
To Remove all Breakpoints:
