What does “Cannot evaluate expression because the code of the current method is optimized.” mean?

后端 未结 15 1444
北荒
北荒 2020-12-08 09:24

I wrote some code with a lot of recursion, that takes quite a bit of time to complete. Whenever I \"pause\" the run to look at what\'s going on I get:

<
15条回答
  •  离开以前
    2020-12-08 09:45

    I had this issue when I was using VS 2010. My solution configuration has (Debug) selected. I resolved this by unchecking the Optimize Code property under project properties. Project (right Click)=> Properties => Build (tab) => uncheck Optimize code

提交回复
热议问题