一次设置多个断点的属性

发布于 2025-01-06 04:44:13 字数 131 浏览 0 评论 0原文

我正在调试对特定类的调用,并在每个函数上设置了断点。

将这些转换为跟踪点需要一些时间和点击,现在我想扩展跟踪输出。由于我不想再次遍历所有断点,更换模板,我想知道是否有一种方法可以在单个操作中为多个断点设置断点属性(例如打印的消息)。

I'm debugging calls into a specific class, and have set a breakpoint on every function.

Converting these to tracepoints took some time and clicking, and now I'd like to extend the trace output. As I don't want to go through all breakpoints again, replacing the template, I wonder if there is a way to set breakpoint properties (such as the message printed) for multiple breakpoints in a single operation.

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

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

发布评论

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

评论(1

爱你不解释 2025-01-13 04:44:13

可以通过修改注册表项来更改默认跟踪点消息,但如果您已经更改了现有跟踪点,则这对您没有帮助。

默认消息是 (WinXP Visual Studio 2005),位于:

HKEY_CURRENT_USER\Software\Microsoft\VSA\8.0\Debugger\DefaultTracepointMessage - Function: $FUNCTION, Thread: $TID $TNAME

另一种解决方案是运行一个循环遍历所有断点并修改其消息的宏:

    Dim bp As EnvDTE80.Breakpoint2
    For Each bp In bps
        bp.Message = "Your new output"
    Next

It's possible change the default tracepoint message by modifying a registry key, but if you already have changed your existing tracepoints this wont help you.

The default message is (WinXP Visual Studio 2005) found at:

HKEY_CURRENT_USER\Software\Microsoft\VSA\8.0\Debugger\DefaultTracepointMessage - Function: $FUNCTION, Thread: $TID $TNAME

Another solution would be to run a macro that loops through all breakpoints and modifies it's message:

    Dim bp As EnvDTE80.Breakpoint2
    For Each bp In bps
        bp.Message = "Your new output"
    Next
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文