如何在 MS Visual Studio 中定义多个断点

发布于 2024-07-30 10:20:20 字数 130 浏览 0 评论 0原文

假设您想要调试项目...但是您想要单步执行所有事件处理程序、委托方法等...有什么方法可以在以下位置添加多个断点所有这些位置(假设在每个方法的开头) 而不是手动单击并选择断点?

Suppose you want to debug a project... but you want to step into all Event handlers, delegates methods etc... Is there any way how to add multiple Breakpoints at all of these locations (let's say at the start of each method)
instead of manually clicking and choosing the breakpoints?

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

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

发布评论

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

评论(3

想你只要分分秒秒 2024-08-06 10:20:21

不是开箱即用的。 我想也许可以创建一个 VS Addon 来做到这一点,但我怀疑这是否值得。

Not out of the box. I guess it may be possible to create a VS Addon that could do this but I doubt that it would be worth the effort.

不如归去 2024-08-06 10:20:21

本机代码具有 Class::* 语法 至少从 VS2008 开始。 这可能是有记录的历史中第一个在托管之前为本机代码实现调试功能的案例。

Native code had Class::* syntax since at least VS2008. Probably the first case in recorded history where a debugging feature was implemented for native code before managed.

晨曦÷微暖 2024-08-06 10:20:20

有这样一个Visual Studio插件,可以设置多个断点。 请参阅本文(现已删除,但通过 archive.org 链接)。 另外,您可以将此处中的宏复制粘贴到您的视觉工作室中。 它也适用于 2010 版

There is such a visual studio plugin for setting multiple breakpoints. See this article (now removed but linked via archive.org). Also, you can copy paste a macro from here into your visual studio. It also works with the 2010 edition

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