调试中的 watch window 为空

watch window in the debug is empty

我试图了解如何修理我的手表 window 但没有找到任何好的答案(我使用的是 visual studio 2013)。

我使用了调试器,突然手表 window 没有显示我在块中的值或对象 - 实际上它不再显示任何东西。 有谁知道如何修复它?

非常感谢!!!

也许这会对你有所帮助:

To open the QuickWatch dialog box with a variable added While in break mode, right-click a variable name in the source window name and choose QuickWatch. This automatically places the variable into the QuickWatch dialog box.

Source

Watch windows 默认情况下不显示任何内容,您需要向它们添加内容才能看到值。在你的情况下可能发生的情况是,要么你错误地删除了你拥有的东西,要么你 运行 陷入了一个错误,你的解决方案中的某些东西被破坏了,它们丢失了。

如果您想查看当前范围内的所有内容,本地人 window 是最佳选择。

如果您想要它的超集(既有当前语句也有先前语句),请使用 Autos window。

QuickWatch 对话框在概念上类似于 Watch window,但 QuickWatch 一次只能显示一个变量或表达式

https://msdn.microsoft.com/en-us/library/bhawk8xd.aspx