Breakpoints

Breakpoints are stop signs in code where execution is interrupted. When a breakpoint is hit, the application enters break mode. At that time, you can debug the application with a variety of Visual Studio debugger commands and windows. There are different kinds of breakpoints. A normal breakpoint appears as a red circle to the left of the target line of disassembly or source code. Breakpoints also can appear in other places, such as the call stack window.

In the code editor window, pressing F9 sets a simple breakpoint on the current disassembly or source code line. F9 is a toggle, setting or clearing a breakpoint. In addition, clicking in the leftmost (shaded) column sets or clears a breakpoint. When debugging, an application runs until ...

Get Programming Microsoft® Visual C#® 2008: The Language 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.