c# - 调试期间的 Visual Studio : The function evaluation requires all threads to run

标签 c# visual-studio-debugging

我在调试时突然遇到一个奇怪的错误。到目前为止,监 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.

enter image description here

有关此行为的更多详细信息,请查看此优秀的 article

关于c# - 调试期间的 Visual Studio : The function evaluation requires all threads to run,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29985150/

相关文章:

python - 检查python是否安装

winforms - 让调试器中断下一个事件

c# - Membership.ValidateUser 方法如何访问数据库?

c# - 如何在 C# 中检查两个字符串的部分相似性

c# - 将大文件流式传输到 Web 服务

linux - VS2017 在 Linux Remote 上调试我的共享库

python - 在 vscode 中调试 pytest unitest 导致 AttributError sys has no attribute __breakpointhook__ on exit

c# - 如何使用 Xamarin 在 xaml 中创建自定义字体大小,以便您可以根据设备更改字体大小?

c++ - 表达式 : cannot increment value-initialized iterator (Error in Debug, 但不在 Release模式下 - Visual Studio)

c# - 在 Visual Studio 调试器中设置私有(private)列表的值