Hour 15. Debugging Your Code

No one writes perfect code. You're most certainly familiar with those problems that prevent code from executing properly—they're called bugs. Because you are new to Visual C# .NET, your code will probably contain a fair number of bugs. As you gain proficiency, the number of bugs in your code will decrease, but they will never disappear entirely. Debugging is a skill and an art. This book can't teach you how to debug every possible build or runtime error you encounter; however, in this hour you will learn the basic skills necessary to trace and correct most bugs in your code.

The highlights of this hour include the following:

  • Adding comments to your code

  • Identifying the two basic types of errors

  • Working with break points ...

Get Sams Teach Yourself Microsoft® Visual C#™ .NET in 24 Hours 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.