Your program may builds and run, but what if it gives the wrong result? Solution: check the path of your code and the data being stored using breakpoints. Breakpoints are often the first port of call for programmers who have a logical error in their code.
1. Set a breakpoint
To remove the breakpoint, simple click again.
2. Run the program.
3. Watch the variable
4. Step to the next line of code.
Variables
|
Iterations
|
Want to know more about programming in C#?
DotNetPerls TutorialsPoint Microsoft Docs Tutorials Teacher Learn CS Interactive Tutorial |