Your app has entered a break state, but there is no code to show because all threads were executing external code (typically system or framework code)

前端 未结 20 1851
孤独总比滥情好
孤独总比滥情好 2020-12-10 09:56

Visual Studio 2017 breaks in debug mode and displays the message:

Your app has entered a break state, but there is no code to show because all threa

相关标签:
20条回答
  • 2020-12-10 10:46

    Same here. Reinstalling VS 2019 solved it.

    0 讨论(0)
  • 2020-12-10 10:47

    In my case I just need to restore the list of exception settings to the default settings.

    0 讨论(0)
  • 2020-12-10 10:47

    Observed same error and resolved it by:

    • Removing duplicate configs from section
    • Removing extra/unused characters (by mistakenly entered)
    0 讨论(0)
  • 2020-12-10 10:48

    First drag the Break Mode Window to the Call Stack Window to get an overview again.

    Then, check whether the Solution Explorer Window is in source mode. The 4th button from the left has a drop-down. Make sure the *.sln, i.e. classic solution mode is selected.

    I didn't know this and was surprised to find that in "source mode", i.e. the other possibility, the above mentioned message is displayed.

    0 讨论(0)
  • 2020-12-10 10:48

    I got this when I accidentally set the startup project to a class library instead of the end project (in this case, a WPF application).

    0 讨论(0)
  • 2020-12-10 10:51

    I got this situation when my "Platform Target" in my Project Properties was set to "Any CPU" and "Prefer 32-bit" was selected.

    I switched Platform Target to "x64" since I am using 64-bit assemblies and then I could run/debug normally.

    0 讨论(0)
提交回复
热议问题