【问题标题】:Auto-refresh in watch window in Visual Studio [duplicate]在 Visual Studio 的监视窗口中自动刷新 [重复]
【发布时间】:2012-11-15 10:23:59
【问题描述】:

可能重复:
“This expression causes side effects and will not be evaluated”. How to suppress?

我在 Visual Studio 中使用 Watch 窗口。 我在 Watch 窗口中添加了一些变量。 有时要在调试时获取值,我必须单击刷新图标。 是不是有一些设置可以让它自动刷新?

【问题讨论】:

    标签: .net visual-studio debugging watch-window


    【解决方案1】:

    您可以将,ac 附加到监视表达式以使其自动刷新值。

    例如而不是xyz.ToString() 使用xyz.ToString(),ac

    更多信息请参见this answer

    【讨论】:

      猜你喜欢
      • 2015-02-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-04
      • 1970-01-01
      相关资源
      最近更新 更多