Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open the Watch Window in Visual Studio 2019

I search on Google about "Visual Studio 2019 Watch Window". It tells me that open the Watch Window by the menu sequence Debug > Windows > Watch. However there is no an Watch item in the Windows menu. Can anybody tell me how to open the Watch window?

enter image description here

like image 246
Ben Tam Avatar asked Apr 12 '20 14:04

Ben Tam


People also ask

How do I view a watch window in Visual Studio?

The Watch Window. The Watch Window allows you to see value of variables and expressions while debugging. It's kind of like the DataTip you get when hovering over a variable, except that you can write any expression you want. It's available from Debug | Windows | Watch | Watch 1 or Ctrl + Alt + W + 1.

How do I open the Output window in Visual Studio 2019?

The Output window displays status messages for various features in the integrated development environment (IDE). To open the Output window, on the menu bar, choose View > Output, or press Ctrl+Alt+O.


2 Answers

button becomes visible when in debug mode, debug> window> watch

like image 166
kiwi Avatar answered Oct 16 '22 17:10

kiwi


Add a breakpoint in your code, and then click "start debugging(F5)". Then Select DEBUG -> Windows -> Watch

Have you already started debugging? The watch window option is only visible under DEBUG -> Windows during debugging (debugger must be running or in break mode).

like image 2
Abhishek Duppati Avatar answered Oct 16 '22 19:10

Abhishek Duppati