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

前端 未结 11 1631
执笔经年
执笔经年 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:26

    I was experiencing the same error message in the Visual Studio debugger when evaluating a linq expression.

    Disabling the VS debugger config setting 'Enable Just My Code' resolved the issue for me:

    To enable or disable Just My Code, choose the Tools > Options menu in Visual Studio. In the Debugging > General node, choose or clear Enable Just My Code.

    https://docs.microsoft.com/en-us/visualstudio/debugger/just-my-code

提交回复
热议问题