问题
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