Introduction to Debugging

Bugs are logical errors in the program. Debugging, as the name implies, is the process by which these bugs are removed or fixed. This process involves identifying the error or problem, locating the source of this problem, finding a solution for it, applying this solution, and finally testing the code again to ensure that the bug has been fixed permanently.

Debugging is an integral part of the development of any software application. In small programs, merely compiling and executing the code is sufficient to find and fix all possible bugs.

However, in huge applications that run to many thousands of lines, it is not only difficult to figure out what the problem is but also hard to identify from which part of the code ...

Get Special Edition Using C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.