Freigeben über


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: VS2005Tip,VS2008Tip

Comments

  • Anonymous
    August 31, 2008
    PingBack from http://housesfunnywallpaper.cn/?p=3412

  • Anonymous
    September 02, 2008
    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

  • Anonymous
    September 04, 2008
    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.

  • Anonymous
    February 25, 2009
    本篇包括tip301-tip310http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-30.html#301、缓存...