一次设置多个断点的属性
我正在调试对特定类的调用,并在每个函数上设置了断点。
将这些转换为跟踪点需要一些时间和点击,现在我想扩展跟踪输出。由于我不想再次遍历所有断点,更换模板,我想知道是否有一种方法可以在单个操作中为多个断点设置断点属性(例如打印的消息)。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以通过修改注册表项来更改默认跟踪点消息,但如果您已经更改了现有跟踪点,则这对您没有帮助。
默认消息是 (WinXP Visual Studio 2005),位于:
HKEY_CURRENT_USER\Software\Microsoft\VSA\8.0\Debugger\DefaultTracepointMessage - Function: $FUNCTION, Thread: $TID $TNAME
另一种解决方案是运行一个循环遍历所有断点并修改其消息的宏:
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: