debugging - 调试时如何删除异常 "Predefined type ' ValueTuple` 2' must be a struct"?

标签 debugging exception tuples visual-studio-2017 c#-7.0

我开始在 c# 7.0 中使用新的元组功能,但我注意到无论是在返回元组的函数中还是在其调用者中都无法在 Debug模式下检查变量值。而是显示了一个异常:

$exception  error CS8182: Predefined type 'ValueTuple`2' must be a struct.  

有没有办法摆脱那个小故障并正常调试?

enter image description here

enter image description here

最佳答案

这似乎是 Microsoft 已修复的错误,但它将在 future 的更新 (2017) 中可用
https://github.com/dotnet/roslyn/pull/16930

关于debugging - 调试时如何删除异常 "Predefined type ' ValueTuple` 2' must be a struct"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42856319/

相关文章:

asp.net - Visual Studio 2008 ASP.Net 调试僵尸断点被删除后又回来了

python - 在 Theano 中打印变量表达式

c# - WebSockets-尖锐异常: WebSocketException

Python 2.5 作为关键字有多个异常(exception)

python - 具有 dtype float 的 Numpy n 元组数组

c++ - 如何删除具有特定条件的 vector 中的所有元组?

javascript - 如何修复在使用以 Sprite 为中心的camera.position设置时朝鼠标移动的 Sprite 随机振动的问题?

java - 检查和非检查异常;是什么让他们与众不同?

C#7 元组和异步

c++ - 在 Qt Creator 下使用 CDB 漂亮地打印 QHash