unable to evaluate expression whilst debugging

后端 未结 5 1047
遥遥无期
遥遥无期 2020-12-02 22:33

When debugging asp.net code (running against IIS, and using Visual studio 2013) and in a breakpoint and trying to evaluate a variable using quick watch i quite often get \"u

5条回答
  •  遥遥无期
    2020-12-02 22:41

    The C# debugging engine relies heavily on the CLR debugger in order to evaluate expressions. That message indicates that the CLR is in a state in which it is unable to perform simple evaluations and the reasons for that can include the following

    • a local variable is optimized away
    • the thread is stopped in a GC unsafe point
    • a previous function call caused the debugger to get into a bad state and hence further evaluations simply aren't possible

提交回复
热议问题