Why do my breakpoints duplicate in Visual Studio?

前端 未结 4 644
予麋鹿
予麋鹿 2021-01-11 16:16

I recently started having problems with breakpoints in Visual Studio 2010. When I set a breakpoint and then start debugging, another breakpoint appears on some other line ne

4条回答
  •  青春惊慌失措
    2021-01-11 16:30

    It looks like there is a child breakpoint set up, as described in the following MSDN articles: http://msdn.microsoft.com/en-us/library/b98cwcyw.aspx (Link dead, see Child breakpoints VS 2010)
    http://msdn.microsoft.com/en-us/library/02ckd1z7%28VS.71%29.aspx#vctskbreakpointswindowchildbreakpoints

    Here is a similar question on StackOverflow, for which one of the answers contains a macro to remove child breakpoints. Perhaps that might work for you? Disable/remove child Breakpoints?

    Alternatively, deleting the parent breakpoint (which will also remove the children) and re-creating it might help to resolve the problem.

提交回复
热议问题