Debugging techniques
Technical issues occur all the time during the development process. To tackle these problems, we need to find out all these issues and solve them before releasing our application to the users, so as not to affect the company/team's reputation. The method used to look for technical issues is called debugging. In this section, we will look at the common debugging techniques used by professionals to ensure their program is reliable and of a high quality.
Identifying the problem
The most important thing when it comes to debugging your program, regardless of programming language or platform, is to know which part of your code is causing the problem. There are several ways you can identify your problematic code:
- Ask the user at which point the bug happened; for example, which button was pressed, what were the steps leading to the crash, and so on.
- Comment away part of your code, then build and run the program again to check whether the problem still occurs or not. If it still...