VS2017 debugging error: Evaluating the function timed out and needed to be aborted…

我与影子孤独终老i 提交于 2020-01-04 05:57:08

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/50931780/vs2017-debugging-error-evaluating-the-function-timed-out-and-needed-to-be-abort

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!