Understanding QuickWatch
Keyboard: SHIFT + F9
Menu: Debug -> QuickWatch
Command: Debug.QuickWatch
Versions: 2008,2010
Published: 10/12/2010
Code: vstipTool0108
In vstipTool0104 (https://blogs.msdn.com/b/zainnab/archive/2010/10/08/the-watch-window-watching-and-changing-values-vstiptool0104.aspx) I showed you the QuickWatch as a way to get watches into a Watch window. From that perspective, they are rather slow and cumbersome. However, QuickWatch doesn't just exist for that reason so another look might be worth it:
Why QuickWatch?
So, why does QuickWatch exist? Well, it was actually created to be a dialog that is a one-stop shop for quickly working with expressions. Think of it as a dialog dedicated to a single watch. It's a modal dialog so you need to close it before moving on with any other debugging.
What does it do?
Like a normal watch, you can edit the value in it:
You can change the expression and click the "Reevaluate" button to see a new value:
One big advantage to the QuickWatch window is the fact that it can be resized. It can be very useful when digging deep into a single item:
Other Options
While it is useful for specific scenarios, with the advent of DataTips the usefulness of QuickWatch has diminished:
Comments
- Anonymous
April 03, 2011
When using VS 2010 to debug JavaScript code, in QuickWatch how can I edit the value of a string var when the string value contains one or more double-quote characters? QW keeps refusing my edits, until I delete the double-quote chars (but my value needs them). My character escape attempts have all failed. Thanks.