Cannot See Values While Debugging ASP.NET Core

2019-03-26 02:48发布

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.

2条回答
淡お忘
2楼-- · 2019-03-26 03:45

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.

查看更多
甜甜的少女心
3楼-- · 2019-03-26 03:48

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.

查看更多
登录 后发表回答