Condividi tramite


Set or Remove a Breakpoint

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

Comments

  • Anonymous
    April 25, 2010
    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)