I've just upgraded to Visual Studio 2015 RTM. Why I can't watch variable values in release mode when I'm stopped on a breakpoint? It was possible in previous Visual Studio versions.
EDIT: I'm talking about used variables, of course.
I've just upgraded to Visual Studio 2015 RTM. Why I can't watch variable values in release mode when I'm stopped on a breakpoint? It was possible in previous Visual Studio versions.
EDIT: I'm talking about used variables, of course.
According to Microsoft support it is not possible:
If I'm reading the solution summary correctly, it looks like you're building Release, rather than Debug. In Release, some locals will be optimized away and will not be available during debugging. In your particular example, it looks like it would be easy to optimize away "roles" by inlining its value into the return statement.
If you need to know the value of that variable, it should be visible after you switch to the Debug configuration.
Thanks, Andrew Casey C#/VB Developer