Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add other watch windows than the default first to Visual Studio 2010?

I just want to show more than one Watch window.

There, they say that it is possible:

http://www.codeproject.com/Articles/121623/10-Tips-you-should-know-about-Watch-Window-While-d

But I tried a lot of times in different ways with that ugly ctrl+d,w combos (ctrl+d,w, ctrl+d,w,1,ctrl+d,w,2,ctrl+d,w,3,ctrl+d,w,4). I could see only Watch 1 window.

Help!!!

like image 868
kokbira Avatar asked Jun 15 '12 00:06

kokbira


2 Answers

Looking in Options --> Environment --> Keyboard and looking up the Debug Shortcuts gives the following default Shortcuts. Press the Ctrl + Alt + W together, release then press the keyboard number key for the respective window not the Numpad number key. Or when your program is running just go to Debug --> Windows --> Watch and select the Watch window you wish to add.

Debug.Watch1 = Ctrl + Alt + W, 1
Debug.Watch2 = Ctrl + Alt + W, 2
Debug.Watch3 = Ctrl + Alt + W, 3
Debug.Watch4 = Ctrl + Alt + W, 4

like image 54
Mark Hall Avatar answered Nov 16 '22 11:11

Mark Hall


You can also go to Debug > Windows > Watch > and then select the watch window you want to see.

Here is a picture of how it looks:

http://prntscr.com/qw4r80

The good thing about this is that once you activate one of the four available watch windows, it stays available like this:

http://prntscr.com/qw4snf

like image 3
Ivan Gil Avatar answered Nov 16 '22 11:11

Ivan Gil