我在调试时突然遇到一个奇怪的错误。到目前为止,监 window 口中的变量已正确显示。现在我总是在监 window 口中收到此错误消息:
The function evaluation requires all threads to run
我无法再检查任何变量。我没有明确地使用线程。我该怎么做才能让它重新工作?
如某些论坛所述,我已经在调试器的选项窗口中禁用了功能:“启用属性评估和其他隐式函数调用”。但是没有成功,它给了我这个错误:
Error Implicit Function evaluation disabled by the user
最佳答案
来自msdn论坛:
This isn't an error in and of itself, but more of a feature of your debugger. Some properties require code to be executed in order for the property to be read, but if this requires cross-thread interaction, then other threads may have to run as well. The debugger doesn't do this automatically, but certainly can, with your permission. Just click the little evaluate icon and it will run your code and evaluate the property.
有关此行为的更多详细信息,请查看此优秀的 article
关于c# - 调试期间的 Visual Studio : The function evaluation requires all threads to run,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29985150/