如何让 WinDbg 在遇到断点时播放声音?

发布于 2025-01-07 16:19:49 字数 370 浏览 3 评论 0原文

不久前,有人问如何您可以让 Visual Studio 的调试器在遇到断点时播放声音。 由于太无聊而无法深入讨论的原因,我经常需要使用 Windows 调试工具,包括 WinDBG。因此,这个类似的问题是:

如何让 WinDBG 在遇到断点时播放声音警报?

Quite a while ago, someone asked how you can make Visual Studio's debugger play a sound when it hits a breakpoint. For reasons too boring to go into, I often need to instead use the debuggers from the Debugging Tools for Windows, including WinDBG. Hence, this analogous question:

How can I make WinDBG play a sound alert when a breakpoint is hit?

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

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

发布评论

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

评论(1

吻风 2025-01-14 16:19:49

使用 WinDbg 的 < code>.sound_notify 命令。此命令告诉 WinDbg 在开始等待您输入命令时播放声音。断点被命中就是这样的时间,因此 .sound_notify 应该可以满足您的需求。

Use WinDbg's .sound_notify command. This command tells WinDbg to play a sound whenever it starts waiting for you to enter a command. A breakpoint being hit is just such a time, so .sound_notify should work for your needs.

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