19

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 ?

Community
  • 1
  • 1
Brij
  • 11,731
  • 22
  • 78
  • 116

1 Answers1

61

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.

Himanshu
  • 31,810
  • 31
  • 111
  • 133
ymln
  • 967
  • 5
  • 14