断点分组 [英] Grouping of break points
问题描述
我正在 Visual Studio 2005 中处理一个基于 C# windows 的项目.我经常在这个庞大的项目中调试不同的功能.现在的问题是我在几个地方做了几个断点,我只在调试该功能时才需要这些断点.我希望其他断点被禁用.我知道这可能不是更大社区的用例.我想知道的是,有没有办法在 VS 2005 中对断点进行分组,以便在调试该特定功能时启用禁用它们?
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?
推荐答案
Visual Studio 中没有内置功能,但我不久前遇到的事情是巧妙地使用宏来提供一些分组功能.
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.
查看 Jim Gries 的这篇博客文章 展示如何去做.
请注意,我现在这对您目前的情况没有帮助,但是 这种情况在 VS 2010 中得到了改善.
Just a note, I now it doesn't help your current situation, but the situation has been improved in VS 2010.
这篇关于断点分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!