VS2017调试错误:评估函数超时,需要中止... [英] VS2017 debugging error: Evaluating the function timed out and needed to be aborted...

查看:225
本文介绍了VS2017调试错误:评估函数超时,需要中止...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

调试代码时,我经常在Visual Studio 2017中看到此弹出窗口,这使我无法评估对象。





我单击了帮助按钮并阅读了说明该怎么做,但是他们没有建议任何选择,这基本上是-禁用所有属性评估,这使得调试无用,因为我确实想查看对象或集合的状态。



有没有办法解决这个问题?谢谢。

解决方案

选中此选项:


调试>选项>使用托管的兼容模式


这不是理想的选择。在文档使用托管的兼容模式中:


将默认调试引擎替换为旧版,以在以下情况下启用



您使用的是.NET Framework语言,但C#,VB或F#
除外,它提供了自己的表达式计算器(包括C ++ / CLI)。 / p>

要在混合模式调试时为C ++项目启用编辑并继续。
请注意,选择托管兼容性模式将禁用某些仅在默认调试引擎中实现的功能。



when I debug code, I often get this popup in Visual Studio 2017, that prevents me from evaluating objects.

I clicked on Help button and read the instructions what to do, however none of the options they suggested, which is basically - to disable all property evaluation, that makes debugging useless since I do want to see the state of the object or the collection.

Is there any way to solve this? Thanks.

解决方案

Check this option:

Debug > Options > "Use Managed Compatibility Mode"

This is not ideal. From the docs "Use Managed Compatability Mode":

Replaces the default debugging engine with a legacy version to enable these scenarios:

You are using a .NET Framework language other than C#, VB, or F# that provides its own Expression Evaluator (this includes C++/CLI).

You want to enable Edit and Continue for C++ projects while mixed mode debugging. Note that choosing Managed Compatibility mode disables some features that are implemented only in the default debugging engine.

这篇关于VS2017调试错误:评估函数超时,需要中止...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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