I'm getting this message in watch box.
Actually, my expression doesn't have any side effect, and I need to re-evaluate it automatically each time. How can I achieve that?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can append ",ac" to the watch expression to have it automatically refresh the value
x.ToString(),ac
See http://msdn.microsoft.com/en-us/library/e514eeby.aspx for more information and other format specifiers.
thanks to Scott Visual Studio: Make debugger aware that a function doesn't cause "side effects"