Visual Studio:循环通过断点

发布于 2024-07-22 04:20:22 字数 113 浏览 1 评论 0原文

是否有循环断点的快捷方式? 调试项目时我经常忘记断点。 当我完成一个错误的处理后,我必须为即将解决的新错误重置断点。 如果有一个按键可以让我循环通过断点并禁用我不需要的断点并保留我需要的断点,那将会很方便。

Is there a shortcut to cycle through my breakpoints? I often lose track of the breakpoints when debugging a project. When I finish working with one bug, I have to reset my breakpoints for a new bug that I am about to solve. It would be handy to have a keystroke that would allow me to cycle through the breakpoints and disable ones I don't need and keep the ones I need.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

甚是思念 2024-07-29 04:20:22

您始终可以打开断点窗口 (Ctrl + Alt + B) 来循环浏览它们。

You can always open the breakpoints window (Ctrl + Alt + B) to cycle through them.

緦唸λ蓇 2024-07-29 04:20:22

我不相信你可以。

您可以显示所有断点的列表,并使用断点视图(调试/Windows/断点)跳转到它们。

如果需要,您也可以编写一个宏来执行此操作。

I don't believe you can.

You can display a list of all breakpoints and jump to them using the breakpoint view (Debug / Windows / Breakpoints).

You may also be able to write a macro to do it if you want.

稀香 2024-07-29 04:20:22

我认为没有内置的方法可以做到这一点。 不过,您可能想看看这个问题。 您可以保存一个错误的断点并在需要时加载它。

I don't think there is a built in way of doing this. However you might want to take a look at this question. You can probably save the breakpoints for one bug and load it whenever you want it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文