One Step Further: Removing Breakpoints


One Step Further: Removing Breakpoints

If you've been following the instructions in this chapter carefully, the Debug Test program is still running and has a breakpoint in it. Follow these steps to remove the breakpoint and end the program. You're finished debugging the Debug Test program.

Remove a breakpoint

  1. In the Code Editor, click the red circle associated with the breakpoint in the Margin Indicator bar.

    The breakpoint disappears. That's all there is to it! But note that if you have more than one breakpoint in a program, you can remove them all by clicking the Delete All Breakpoints command on the Debug menu. Visual Studio saves breakpoints with your project, so it's important to know how to remove them; otherwise, they'll still be in your program, even if you close Visual Studio and restart it!

  2. Click the Stop Debugging button on the Standard toolbar.

    The Debug Test program ends.

  3. On the View menu, point to Toolbars, and then click Debug.

    The Debug toolbar closes.

You've learned the fundamental techniques of debugging Visual Basic programs with Visual Studio. Place a bookmark in this chapter so that you can return to it as you encounter problems later in the book. In the next chapter, you'll learn how to handle run-time errors by using structured error handling techniques.



Microsoft Visual Basic 2005 Step by Step
Microsoft Visual Basic 2005 Step by Step (Step by Step (Microsoft))
ISBN: B003E7EV06
EAN: N/A
Year: 2003
Pages: 168

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net