Possible Duplicate:
“This expression causes side effects and will not be evaluated”. How to suppress?
I am using Watch window in Visual Studio. I have added some variables in Watch window. Sometimes to get the value while debugging I have to click the refresh icon. Isn't there some setting that allows it to auto-refresh ?
Refresh watch values A refresh icon (circular arrow) might appear in the Watch window when an expression is evaluated. The refresh icon indicates an error or a value that is out of date. To refresh the value, select the refresh icon, or press the spacebar.
It's available from Debug | Windows | Watch | Watch 1 or Ctrl + Alt + W + 1. There are 4 watch windows in Visual Studio, which you can use in different contexts (Watch 1, Watch 2, etc.). Any expression can be entered into the watch window.
First, enable it in your IDE settings: On Windows, check the Enable XAML Hot Reload checkbox (and the required platforms) at Tools > Options > Debugging > Hot Reload. In earlier versions of Visual Studio 2019, the checkbox is at Tools > Options > Xamarin > Hot Reload.
You can append ,ac
to the watch expression to have it automatically refresh the value.
E.g. Instead of xyz.ToString()
use xyz.ToString(),ac
.
See this answer for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With