visual-studio - 将多组断点保存为不同的配置文件 - Visual Studio

标签 visual-studio debugging visual-studio-2017 visual-studio-debugging

Visual Studio 2017 中是否有内置功能可以在不同的配置文件中保存多组断点,以便轻松切换。

用例:在大型项目中,有时需要仅关注一组flow-1,然后切换回另一组flow- 2 其中每个流都有自己的一组断点,并且您不希望命中 flow-1 的断点。

The MSDN link given in the SO answer here, is no longer valid.

And anything better than this import/export solution? This approach has one limitation - "Breakpoint Import depends on the line number where you have set your breakpoint earlier. If your line number changed the breakpoint will set on the previous line number only, so you will get breakpoints on unexpected lines."

最佳答案

在 Visual Studio 断点窗口中,您可以为 flow-1 或 flow-2 标记断点:

enter image description here

然后,要快速启用或禁用一组断点,您可以搜索 flow-1 或 flow-2,然后单击启用或禁用与当前搜索条件匹配的所有断点 按钮。

关于visual-studio - 将多组断点保存为不同的配置文件 - Visual Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47576473/

相关文章:

c# - 当前不会命中断点 - 远程调试

azure - 使用 Application Insights 无法看到自定义日志

c# - 除了背景图片之外,css 代码在 mvc 中不起作用

powershell - NuGet - 从命令行添加新的包源

c# - 缺少 Nuget.targets

c++ - 变量 args SFINAE 默认构造函数在 clang 中工作,但在 Visual Studio 2015 中失败

c# - 仅在其他机器上的 MySQL 语法错误

html - 当我在我的代码中添加目标 ="_blank"时,它仍然在单击它的保存窗口中打开

matlab - mex 文件编译没有错误但不能在 matlab 中工作

C++ 无法打开源文件