为什么我的断点在Visual Studio中复制? [英] Why do my breakpoints duplicate in Visual Studio?

查看:200
本文介绍了为什么我的断点在Visual Studio中复制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始有在Visual Studio 2010中的问题与断点当我设置一个断点,然后启动调试,另一个断点出现在一些其他线路附近。下面的截图显示了编辑器后,我设置断点,以及断点窗口:

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 nearby. The screenshots below shows the editor after I set a breakpoint, as well as the breakpoints window:

当我开始调试,断点重复的,如下面的截图所示:

As soon as I start debugging, the breakpoint duplicates, as seen in the following screenshots:

为什么会出现这种情况,如何能我停止吗?

推荐答案

它看起来像有一个孩子断点设置,如下面的MSDN文章中描述: http://msdn.microsoft.com/en-us/library/b98cwcyw.aspx
<一href="http://msdn.microsoft.com/en-us/library/02ckd1z7%28VS.71%29.aspx#vctskbreakpointswindowchildbreakpoints" rel="nofollow">http://msdn.microsoft.com/en-us/library/02ckd1z7%28VS.71%29.aspx#vctskbreakpointswindowchildbreakpoints

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
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.

这篇关于为什么我的断点在Visual Studio中复制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆