在立即窗口中显示异常信息和 Debug.Print() 消息
我的一个朋友声称,对 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有一个设置可以将所有输出重定向到立即窗口。工具>选项>调试>将所有输出窗口文本重定向到立即窗口。
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.
在 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