Reputation: 1275
I am unable to see the values of local variables in debug mode when mouse pointer placed over them or by adding add watch
option in visual studio 2015. I am also getting the error
Internal error in the expression evaluator
I have tried the following to fix the error
Rebuilded the solution
Restarted Visual studio
Restarted My PC
Set Debug - > Options -> Ticked Use Mange Compatibility mode
Set Debug - > Options -> Ticked Use Native Compatibility mode
Set Debug - > Options -> Use the legacy c# and vb expression evaluators (Note:When I enable this I can see that it works for some of the codes when debugging on a device, but not all.In the emulator it works for all the code, but in earlier version of visual studio (2013) it works both for emulator and device without setting anything in visual studio at all)
Upvotes: 0
Views: 1980
Reputation: 1275
Running the visual studio in Administrator mode seems to solve the issue also I need to put a tick mark on
Set Debug - > Options -> Use the legacy c# and vb expression evaluators
as well.
Upvotes: 1
Reputation: 1067
This can occur when the Optimize code option is checked in Project Properties>Build
Upvotes: 1