I am working on a C# windows based project in visual studio 2005.I often debug different features in this huge project.Now the problem is i have made few break points in few places which i require only when i debug for that feature.i want other break points to be disabled then.I understand this might not be a use case for larger community. What i want to know is,is there any way to group break points in VS 2005 ,so that i can enable disable them when i debug that particular feature?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
There's not a feature built into Visual Studio, however something I came across a while back is a clever use of macros to give some grouping functionality.
Check out this blog entry by Jim Gries showing how to do it.
Just a note, I now it doesn't help your current situation, but the situation has been improved in VS 2010.
回答2:
you can check this reference:
a VS 2010 Debugger Improvements (BreakPoints, DataTips, Import/Export)
This solution works only in Visual Studio 2010 and above