Visual Studio during Debugging: The function evaluation requires all threads to run

Maik picture Maik · May 1, 2015 · Viewed 93.2k times · Source

I'm getting suddenly a strange error while debugging. Up to now the variable in the watch windows has been shown correctly. Now I am getting always the error message in the watch windows:

The function evaluation requires all threads to run

I am not able to check any variable anymore. I am not explicit working with threads. What can I do to get it working again?

I disabled already as mentioned in some forums the function: "Enable property Evaluation and other implicit function Calls" in the option window of the debugger. But without success, then I am getting the error:

Error Implicit Function evaluation disabled by the user

Answer

MUG4N picture MUG4N · May 1, 2015

From the msdn forum:

This isn't an error in and of itself, but more of a feature of your debugger. Some properties require code to be executed in order for the property to be read, but if this requires cross-thread interaction, then other threads may have to run as well. The debugger doesn't do this automatically, but certainly can, with your permission. Just click the little evaluate icon and it will run your code and evaluate the property.

enter image description here

For further details on this behaviour check this excelent article