Introduction
Programming may be easy or difficult, based on the programmer. There are several parts present in programming, and you might even excel in one of them and not excel in another. That is totally fine. But when you act as a proper developer or programmer, you have to be able to find problems in your program and engage in a debugging process. Debugging is a bit difficult. If you are dealing with a large program, then finding the error would be like searching for a needle in the haystack. But even if you do identify the problem, how do you deal with it effectively? Will your first solution be the fix too? Not necessarily.
Debugging Principles
Let’s say that your program encountered an error. So, what are the steps that you are going to take?
- Identify The Problem: Yes, it will be difficult. You will not be able to find it easily but the first step will always be to look for the problem. Check the program thoroughly and find the problem.
- Reproduce The Problem: This is a difficult step but a necessary one. Keep the root program unchanged and then, create a situation on a separate project where you reproduce the problem. It is in this project that you will apply the fix and work on to finalize a debugged program.




