“Cannot evaluate expression because the code of the current method is optimized” in Visual Studio 2010

后端 未结 22 655
耶瑟儿~
耶瑟儿~ 2020-12-23 08:59

I am using Visual Studio 2010 in debug mode and I have \"optimize code\" unchecked. I can\'t quick watch (or hover on) any variable in the debugger. I get this error \"Canno

22条回答
  •  -上瘾入骨i
    2020-12-23 09:06

    In Visual Studio 2012 enabling the "Managed" option from Tools > Debugging > Just-In-Time worked for me.

提交回复
热议问题