Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Function evaluation timed out when examining variables in debug/stepping through

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.

This is within VS2010 Premium.

like image 343
GurdeepS Avatar asked Sep 06 '25 06:09

GurdeepS


1 Answers

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.

  • Tools -> Options
  • Debugging
  • Uncheck "Enable property evaluation and other implicit function calls"

Then restart your scenario and see if it works.

like image 130
JaredPar Avatar answered Sep 08 '25 19:09

JaredPar