问题
When debugging an ASP.NET Core application, using Visual Studio 2015, I cannot see the variable, parameters and field values, when, for example, I hover them. I cannot add them to the watch as well. I am running in debug.
回答1:
We might have found a solution (or at least a workaround) for the problem. If we go into Tools > Options > Debugging
and enable Use Managed Compatibility Mode
then we can inspect all the values we like.
I hope this solves the issue for you as well.
Update: Visual Studio 2015 Update 2 RC fixed the issue for me, but unfortunately not for the OP.
回答2:
This behavior happens with 1.0.0-rc1-update1, but not with 1.0.0-rc2-16357. If possible, upgrade. Microsoft is aware of it.
来源:https://stackoverflow.com/questions/35543354/cannot-see-values-while-debugging-asp-net-core