Visual Studio 2017 Debug Error: To prevent an unsafe abort when evaluating the function *.toString all threads were allowed to run

前端 未结 2 1354
梦毁少年i
梦毁少年i 2020-11-29 07:52

I updated Visual Studio 2017 to version 15.8.2.

After this update, I started to encounter these errors while debugging:

Here are the er

2条回答
  •  没有蜡笔的小新
    2020-11-29 08:59

    Visual Studio 2017 Debug Error: To prevent an unsafe abort when evaluating the function *.toString all threads where allowed to run

    According to this document:

    One common reason for this problem is that when the debugger evaluates a property, it only allows the thread being inspected to execute. So if the property is waiting on other threads to run inside the debugged application, and if it is waiting in a way that the .NET Runtime isn't able to interrupt, this problem will happen.

    And to resolve this issue, you can try following two possible solutions:

    • Solution #1: Prevent the debugger from calling the getter property or
    • Solution #2: Have the target code ask the debugger to abort the evaluation ToString method

    Besides, if above not resolve that error, you can also install the previous old version Visual Studio to check if it works for you:

    https://docs.microsoft.com/en-us/visualstudio/productinfo/installing-an-earlier-release-of-vs2017#top

    Hope this helps.

提交回复
热议问题