Did you know… You can set a breakpoint by clicking in the indicator margin – #260

Ah, time to get up and stretch.  We’re in a new series, and it’s all about debugging.

Let’s start off with the very basics.  I know the majority of you already know this, but remember someone probably had to show you how to do this at some point.  So, this is for all of you new to Visual Studio and/or coding and haven’t seen this.

You can set a breakpoint on any applicable line by clicking in the indicator margin, as illustrated

Set breakpoint via indicator margin

and clicking here will insert the breakpoint.


Technorati Tags: VS2005Tip,VS2008Tip

Comments (4)

  1. Justin says:

    In my environment I don’t have the … at the start of the lines and it always seems to take me a couple of tries when I click in the margin to get the exact row I want.  So instead I use the F9 keyboard shortcut to toggle a breakpoint for the current line the cursor is on.  

    Also, anything that can be done to get away from the mouse helps to reduce the risk of CTD injuries 🙂

  2. John Doe says:

    @Justin: You can enable "the …" by typing Ctrl+R+W, which simply turns on the display of whitespace.

  3. Annie says:

    How to turn off the "…" after turns on the disply of whitespace?

  4. John Doe says:

    The Ctrl+R+W shortcut is a toggle, i.e. retype it to turn display of whitespace from of to on and vice versa.

Skip to main content