title: VS 2015 Update 2 - Variable does not exist when debugging, why?
body: <p>I'm using VS 2015 Update 2 with an asp.net 5 web project configured for debug mode.  When I run the project with F5 to debug it and hit a break point, some variables can not be observed in the watch window even when they are in scope.  Further, if I hover over such variables no value is displayed. </p>
  
  <p>If I use the same visual studio to create an empty web project and add a webform and place the code in the load method, the debugger works fine. That is to say, I can see the variables in the watch window and I can see their values by hovering over them. I glean from this that the root cause of the issue is not VS2015 Update 2 but rather something to do with the project or solution configuration, perhaps specific to asp.net 5 web projects.</p>
  
  <p>I've scoured the web for answers and similar problems happen when trying to debug compiler optimized code.  But I am running the solution in debug mode. Any suggestions?</p>
  
  <p><a href="https://i.stack.imgur.com/QcFaz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QcFaz.png" alt="Screenshot of error"></a></p>
  
  <p>I am aware of <a href="https://stackoverflow.com/questions/13517521/variable-does-not-exist-in-the-current-context-while-debugging">Variable does not exist in the current context while debugging</a> but it applies to a different version of visual studio and the solutions offered there do not fix my issue.</p>