Managing Breakpoints

Breakpoints are the mainstay of application debugging. Press F9 on a line of code to toggle breakpoints on and off. Breakpoints are apparently one of the first things that programmers thought of when they created the operating system. Way back to MS-DOS and to this day, interrupt 3—a system–level function—is the debug, or breakpoint, interrupt. You can still insert an int 3 instruction in an assembly language program (or even using the debug.exe application) and the program will break at that point. Fortunately, all we have to do is hit F9 and the mechanics are handled for us.

Adding a breakpoint to a line of code causes an application running in the IDE to stop at that line. The presence of a breakpoint is indicated by a ...

Get Visual Basic® .NET Power Coding 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.