且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

调试器无法识别等待方法返回值的变量

更新时间:2022-12-05 18:22:12

我不确定在更新的Visual Studio更新中是否仍然会发生这种情况(我不再有该代码库了),但是我的问题可能是将Async-Await调试与代码协定结合在一起.不使用代码协定时,我还没有看到问题.

I'm not sure if this still happens with newer Visual Studio updates (I don't have that code base anymore) but the problem in my case was probably combining Async-Await debugging with code contracts. I haven't seen the problem when not using code contracts.