As described earlier, breakpoints are a great way to dig deep into the code without much hassle. They can help check variables and their values, and the flow at a point or line in the code.
Using breakpoints is very simple:
- The simplest way to add a breakpoint on a line is to click on the margin, which is on the left side, in front of the line, or click on the line and hit the F9 key:
- You'll see a red dot in the margin area where you clicked when the breakpoint is set, as shown in the preceding screenshot.
- Now, run the application and perform a call button click on it; the flow should stop at the breakpoint and the line ...