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

后端 未结 22 733
耶瑟儿~
耶瑟儿~ 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条回答
  •  没有蜡笔的小新
    2020-12-23 09:19

    If you're trying to debug an ASP.NET project, ensure that the project's Properties > Web > Servers dropdown is set to "IIS Express" (in addition to checking everything else here).

提交回复
热议问题