Set or Remove a Breakpoint

Tips Search

If you like the tips then you'll love the book!

Order your copy today:
http://www.amazon.com/gp/product/0735649928

Set or Remove a Breakpoint

  • Comments 1

Keyboard:  F9
Menu:  Debug -> Toggle Breakpoint
Command:  Debug.ToggleBreakpoint
Versions:  2008,2010
Published:  4/25/2010
Code:  vstipDebug0016

 

To set a simple Breakpoint is pretty easy.  Just find some code:

image

 

The a couple of ways to set (or remove) a Breakpoint is just to hit F9 or go to Debug -> Toggle Breakpoint on your menu bar:

image

 

 

If you like using the mouse, then you can set a breakpoint by positioning your pointer in the Margin next to the line you want to set the Breakpoint in:

image

 

Then just clicking your Left Mouse Button:

image

  • I usually set Shift+F9 to Debug.EnableBreakpoint. That way I can set a new breakpoint with F9, then use Shift+F9 to disable it. That way it stays around, just disabled (and I can quickly find it again in the Breakpoints window if I need to re-enable it)

Page 1 of 1 (1 items)
Leave a Comment
  • Please add 1 and 3 and type the answer here:
  • Post