在调试/单步执行中检查变量时,函数评估超时 [英] Function evaluation timed out when examining variables in debug/stepping through

查看:94
本文介绍了在调试/单步执行中检查变量时,函数评估超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调试/单步执行代码时,当我尝试检查表中的变量时,每次内部变量声明函数评估超时都会出错。

When debugging/stepping through code, and I try to examine a variable in the watch, I get errors for every inner-variable stating function evaluation timed out.

有谁知道这是为什么以及如何避免呢?

Does anyone know why this is and how to avoid it? As it impacts my ability to debug code.

这在VS2010 Premium中。

This is within VS2010 Premium.

推荐答案

此问题的最可能原因是对属性或 ToString 方法的隐式评估,这导致CLR评估线程出现问题。为了验证这一点,请关闭隐式评估。

The most likely cause of this problem is an implicit evaluation of a property or ToString method which causes an issue with the CLR evaluation thread. To verify this turn off implicit evaluation.


  • 工具->选项

  • 调试

  • 取消选中启用属性评估和其他隐式函数调用

然后重新启动场景,看看是否可行。

Then restart your scenario and see if it works.

这篇关于在调试/单步执行中检查变量时,函数评估超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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