Not able to set breakpoint in visual studio

后端 未结 8 957
后悔当初
后悔当初 2021-01-11 15:36

I am using Visual Studio 2013 and I am facing a weird issue from last few days. Whenever I try to set a break point, I get an error

\"The Following breakpoint can         


        
相关标签:
8条回答
  • 2021-01-11 16:22

    In my case, this was caused by a faulty merge of the .csproj contents, to be specific a ItemGroup contained a node which belonged in its own ItemGroup.

    0 讨论(0)
  • I used a MVC project and couldn't set any Breakpoints in the Razor-View.
    All my projects were build in Debug-mode and a clean+rebuild didn't help either.
    I had to remove this entry:

    <configuration>
        <appSettings>
            <add key="Microsoft.VisualStudio.Enterprise.AspNetHelper.VsInstrLocation" value="C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Performance Tools\vsinstr.exe"/>
        </appSettings>
    </configuration>
    

    in the Web.config and breakpoints worked again.


    I found a related thread: Visual Studio 2013/2015 profiler adds Not publishable lines in web.config? Seems to be a Bug

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