Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

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.

image

Technorati Tags: ,
Posted: Wednesday, July 16, 2008 3:00 AM by saraford

Comments

Justin said:

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 :)

# July 16, 2008 11:18 AM

John Doe said:

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

# July 16, 2008 2:19 PM

Annie said:

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

# July 17, 2008 9:46 AM

John Doe said:

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

# July 17, 2008 1:34 PM
New Comments to this post are disabled
Page view tracker