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… There is a QuickWatch window? - #303

as I type this, I’m on the Mississippi Gulf Coast, about 45 miles from New Orleans, watching everyone prepare and evacuate for Hurricane Gustav. As you read this, i’m headed to Nashville in hopes to fly back as quickly to Seattle as possible. My connection is in Houston, which given the direction Gustav is heading, probably isn’t a good idea. Needless to say, Tip of the Day fears no hurricanes. =D

While you are debugging your code, you can right-click on any variable and select “QuickWatch…”

QuickWatch command on context menu

The QuickWatch dialog box is very similar to the Watch Window. Think of the QuickWatch dialog as a way to look at just one variable at a time. This is especially useful if you have an array or object that you want to expand in the tree view, as shown below.

object expanded in the quick watch window

Technorati Tags: ,
Posted: Monday, September 01, 2008 3:00 AM by saraford

Comments

Visual Studio Hacks said:

My latest in a series of the weekly, or more often, summary of interesting links I come across related to Visual Studio. Sara Ford's Tip of the Day #303 covers the QuickWatch window . Carlos Quintero posted The diagram of the convoluted build configuration

# September 2, 2008 9:11 AM

Tanner said:

Sara,

I have a quick question on Quickwatch vs Watch:

when dealing with something like a listbox or a dataset why can I only see my "items" or "tables" collections on structures when evaluated with quickwatch?

If I try and look at the same info on a "watched" variable, it has "unsupported something.." or "in order to evaluate an indexed property.." where there should be data.

I've never understood why the quickwatch will show me what I want but the watch wouldn't.  Figured if anyone could sort it out in a way i'd understand, it would be you. If needed I'll try to mock up an example.

# September 4, 2008 2:38 PM

xjb said:

# February 25, 2009 8:27 PM
New Comments to this post are disabled
Page view tracker