• <small id='QqsX9'></small><noframes id='QqsX9'>

  • <tfoot id='QqsX9'></tfoot>

      <bdo id='QqsX9'></bdo><ul id='QqsX9'></ul>
    <legend id='QqsX9'><style id='QqsX9'><dir id='QqsX9'><q id='QqsX9'></q></dir></style></legend>
    <i id='QqsX9'><tr id='QqsX9'><dt id='QqsX9'><q id='QqsX9'><span id='QqsX9'><b id='QqsX9'><form id='QqsX9'><ins id='QqsX9'></ins><ul id='QqsX9'></ul><sub id='QqsX9'></sub></form><legend id='QqsX9'></legend><bdo id='QqsX9'><pre id='QqsX9'><center id='QqsX9'></center></pre></bdo></b><th id='QqsX9'></th></span></q></dt></tr></i><div id='QqsX9'><tfoot id='QqsX9'></tfoot><dl id='QqsX9'><fieldset id='QqsX9'></fieldset></dl></div>

      1. “无法评估表达式,因为当前方法的代码已优化."是什么意思?意思是?

        What does quot;Cannot evaluate expression because the code of the current method is optimized.quot; mean?(“无法评估表达式,因为当前方法的代码已优化.是什么意思?意思是?)

            <tbody id='dgZ4x'></tbody>

          <small id='dgZ4x'></small><noframes id='dgZ4x'>

          <i id='dgZ4x'><tr id='dgZ4x'><dt id='dgZ4x'><q id='dgZ4x'><span id='dgZ4x'><b id='dgZ4x'><form id='dgZ4x'><ins id='dgZ4x'></ins><ul id='dgZ4x'></ul><sub id='dgZ4x'></sub></form><legend id='dgZ4x'></legend><bdo id='dgZ4x'><pre id='dgZ4x'><center id='dgZ4x'></center></pre></bdo></b><th id='dgZ4x'></th></span></q></dt></tr></i><div id='dgZ4x'><tfoot id='dgZ4x'></tfoot><dl id='dgZ4x'><fieldset id='dgZ4x'></fieldset></dl></div>

        1. <tfoot id='dgZ4x'></tfoot>

            • <bdo id='dgZ4x'></bdo><ul id='dgZ4x'></ul>

                <legend id='dgZ4x'><style id='dgZ4x'><dir id='dgZ4x'><q id='dgZ4x'></q></dir></style></legend>

                • 本文介绍了“无法评估表达式,因为当前方法的代码已优化."是什么意思?意思是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我编写了一些包含大量递归的代码,这需要相当长的时间才能完成.每当我暂停"运行以查看发生了什么时,我都会得到:

                  <块引用><块引用>

                  无法计算表达式,因为当前方法的代码已经过优化.

                  我想我明白这意味着什么.然而,令我困惑的是,在我点击 step 之后,代码不再优化",我可以查看我的变量.这是怎么发生的?代码如何在优化代码和非优化代码之间来回翻转?

                  解决方案

                  Debugger使用FuncEval让你看"变量.FuncEval 要求在托管代码中的 GarbageCollector 安全点停止线程.手动暂停"IDE 中的运行会导致所有线程尽快停止.您的高度递归代码往往会停在不安全的地方.因此,调试器无法评估表达式.

                  按 F10 将移动到下一个功能安全点并启用功能评估.

                  有关详细信息,请查看 FuncEval 规则.

                  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:

                  Cannot evaluate expression because the code of the current method is optimized.

                  I think I understand what that means. However, what puzzles me is that after I hit step, the code is not "optimized" anymore, and I can look at my variables. How does this happen? How can the code flip back and forth between optimized and non-optimzed code?

                  解决方案

                  The Debugger uses FuncEval to allow you to "look at" variables. FuncEval requires threads to be stopped in managed code at a GarbageCollector safe point. Manually "pausing" the run in the IDE causes all threads to stop as soon as possible. Your highly recursive code will tend to stop at an unsafe point. Hence, the debugger is unable to evaluate expressions.

                  Pressing F10 will move to the next Funceval Safe point and will enable function evaluation.

                  For further information review the rules of FuncEval.

                  这篇关于“无法评估表达式,因为当前方法的代码已优化."是什么意思?意思是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Populate ListBox with a IEnumrable on another thread (winforms)(在另一个线程(winforms)上使用 IEnumrable 填充 ListBox)
                  listbox selected item give me quot; System.Data.DataRowViewquot; , C# winforms(列表框选择的项目给我quot;System.Data.DataRowView, C# Winforms)
                  Cannot remove items from ListBox(无法从列表框中删除项目)
                  Preventing ListBox scrolling to top when updated(更新时防止列表框滚动到顶部)
                  Drag and drop from list to canvas on windows phone with MVVM(使用 MVVM 在 Windows 手机上从列表拖放到画布)
                  Deselection on a WPF listbox with extended selection mode(具有扩展选择模式的 WPF 列表框上的取消选择)

                  • <tfoot id='RUIsc'></tfoot>
                      <tbody id='RUIsc'></tbody>
                      <bdo id='RUIsc'></bdo><ul id='RUIsc'></ul>
                      <i id='RUIsc'><tr id='RUIsc'><dt id='RUIsc'><q id='RUIsc'><span id='RUIsc'><b id='RUIsc'><form id='RUIsc'><ins id='RUIsc'></ins><ul id='RUIsc'></ul><sub id='RUIsc'></sub></form><legend id='RUIsc'></legend><bdo id='RUIsc'><pre id='RUIsc'><center id='RUIsc'></center></pre></bdo></b><th id='RUIsc'></th></span></q></dt></tr></i><div id='RUIsc'><tfoot id='RUIsc'></tfoot><dl id='RUIsc'><fieldset id='RUIsc'></fieldset></dl></div>
                        1. <legend id='RUIsc'><style id='RUIsc'><dir id='RUIsc'><q id='RUIsc'></q></dir></style></legend>

                          <small id='RUIsc'></small><noframes id='RUIsc'>