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 1850
孤独总比滥情好
孤独总比滥情好 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:51

    You can also experience this issue if you've altered the build process with something like this to remove the PDB files. Typically I recommend if you want to remove the PDB files make the configuration specific to the "Release" configuration:

    <Target Name="RemoveTranslationsAfterBuild" AfterTargets="AfterBuild" Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
        <RemoveDir Directories="@(FluentValidationExcludedCultures->'$(OutputPath)%(Filename)')" />
    
        <ItemGroup>
            <PDBFilesToDelete Include="$(TargetDir)\*.pdb"/>
        </ItemGroup>
        <Delete Files="@(PDBFilesToDelete)" />
    </Target>
    

    Then Follow @Eric's recommendations when debugging run the build under the "Debug" configuration.

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

    Had the same problem, this was due to having the build set to release build. Then when asked if I would like to debug, I accidentally clicked ignore always.

    I changed it to debug mode in the properties settings but the error was still there.

    You will also need to change this in the configuration manager from Build/configuration manager and set Configuration to Debug as well.

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