在立即窗口中显示异常信息和 Debug.Print() 消息

发布于 2024-08-27 21:48:01 字数 307 浏览 5 评论 0原文

我的一个朋友声称,对 Debug.Print() 的调用以及第一次机会异常通知会出现在他的“立即窗口”中。我发现这很令人惊讶;对我来说,它们只出现在输出窗口中。

MSDN 声称(此处)您可以通过在输出窗口中显式禁用它们,在立即窗口中隐式启用它们。但这对我不起作用;如果我禁用此功能,则消息不会显示在两个窗口中。立即窗口保持为空。

如何让立即窗口显示此信息?

A friend of mine claims that calls to Debug.Print() as well as first-chance exception notifications appear in the Immediate Window for him. I found this surprising; for me they only appear in the Output Window.

MSDN claims (here) that you can implicitly enable them in the Immediate Window by explicitly disabling them in the Output Window. But that doesn't work for me; the messages are not shown in either window if I disable this. The Immediate Window remains empty.

How do I get the Immediate Window to display this information?

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

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

发布评论

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

评论(2

峩卟喜欢 2024-09-03 21:48:02

有一个设置可以将所有输出重定向到立即窗口。工具>选项>调试>将所有输出窗口文本重定向到立即窗口。

There's a setting that will redirect all output to the immediate window. Tools > Options > Debugging > Redirect all Output Window text to the Immediate Window.

老子叫无熙 2024-09-03 21:48:01

在 VS2008 和 VS2015 中(没有检查 2010 或 2013,但它们很可能相同)

工具 ->选项->调试->将所有外出窗口文本重定向到立即窗口

in VS2008 and in VS2015 (did not check 2010 or 2013, but they are likely the same)

Tools -> Options -> Debugging -> Redirect all Out Window text to the Immediate Window

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