Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible

前端 未结 11 1614
执笔经年
执笔经年 2020-12-15 16:54

Here is the error

Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code

11条回答
  •  北海茫月
    2020-12-15 17:33

    This error fires only when you are trying to use Watch dialog during debug. Try to use some other technique to output the variables, like Debug.WriteLine, Console.WriteLine and so on.

提交回复
热议问题