Using Visual C# .NET's Debugging Tools

Visual C# .NET includes a number of debugging tools to help you track down and eliminate bugs. In this section, you'll learn how to use break points, the Command window, and the Output window—three tools that form the foundation of any debugging arsenal.

Working with Break Points

Just as an exception halts the execution of a method, you can deliberately stop execution at any statement of code by creating a break point. When Visual C# .NET encounters a break point while executing code, execution is halted at the break statement prior to it being executed. Break points enable you to query or change the value of variables at a specific instance in time, and they let you step through code execution one line ...

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.