由于先前的功能评估超时,因此功能评估被禁用。您必须继续执行以重新启用功能评估。 [英] Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation.

查看:181
本文介绍了由于先前的功能评估超时,因此功能评估被禁用。您必须继续执行以重新启用功能评估。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在调试应用程序时遇到以下错误。它给了我问题,我正在使用EF集合,我试图看看里面是什么,然后它给出了一个错误,当我刷新它并尝试看下一步,这个错误弹出,任何帮助请不要完全看到这个错误?



功能评估被禁用,因为之前的功能评估已超时。您必须继续执行以重新启用功能评估。





我尝试过:



我在谷歌搜索,并在经常调试时尝试

解决方案

如果你有一个长时间运行的查询,调试器会超时查询和重构完成。我从来没有找到办法绕过这个超时,修改或关闭它。



我发现有一些你无法用调试器做的事情在EF操作过程中没有遇到这种情况。我通过重写代码来减少一些来限制从数据库返回的项目数量。


除了潜在的超时问题之外,还存在线程问题的可能性,因为调试器评估正在一个单独的线程上运行。如果调试器评估隐式运行的代码不是线程安全的,那么也可能导致此错误。

Ref: debugging - 由于先前的功能评估超时,功能评估被禁用。 - 在vs2012中 - 堆栈溢出 [ ^ ]



如果你既无法识别超时也无法识别线程问题,那么我建议采用日志记录

Hi,

I am getting the following error when I am debugging the application. It is giving me the Problem where I am using the EF collection, I am trying to see what's inside, then it gave an error, when I refreshed it and try to see next steps, this error popped-up, any help please to not to see this error at all?

Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation.



What I have tried:

I am searching in Google, and trying while debugging frequently

解决方案

If you have a long running query the debugger times out before the query and reconstitution is finished. I have never found a way to get around this timeout, modify it, or turn it off.

I have found that there are certain things you cannot do with the debugger in the middle of an EF operation without running into this. I mitigated some of it by rewriting the code a bit to limit the number of items returned from the database.


In addition to the potential timeout issue there's also the possibility of a threading issue, because the debugger evaluation is being run on a separate thread. If your code that is being implicitly run by the debugger evaluation is not thread safe it can lead to this error as well.
Ref: debugging - "Function evaluation disabled because a previous function evaluation timed out." - in vs2012 - Stack Overflow[^]

If you can neither identify a timeout nor a threading issue then I suggest to resort to logging.


这篇关于由于先前的功能评估超时,因此功能评估被禁用。您必须继续执行以重新启用功能评估。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆