The Watch Window: Adding Watches from Variable Windows
Menu: [Context Menu] -> Add Watch
Command: Debug.AddWatch
Versions: 2008,2010
Published: 10/13/2010
Code: vstipTool0109
The Locals, Autos, Watch, and QuckWatch windows are all known, collectively, as the Variable windows. Did you know the every Variable window supports the Debug.AddWatch command? Just right click on any item and you can do it! Let me show you:
Locals Window
Autos Window
QuickWatch
Watch [1,2,3,4] Window
This is one you may not expect. The Watch windows actually have the ability to add watches. Very useful if you have a complex expression and want to copy it to do a modification:
Keyboard Mapping
If you find yourself adding watches frequently in break mode you should consider mapping a keyboard shortcut. Go to Tools -> Options -> Environment -> Keyboard and assign a shortcut to the Debug.AddWatch command: