Visual Studio输出窗口不显示Debug.Write()发送的消息 [英] Visual Studio output window is not displaying messages sent by Debug.Write()

查看:663
本文介绍了Visual Studio输出窗口不显示Debug.Write()发送的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在试用模式下使用Visual Studio 2010 Professional ...而且突然显示输出窗口不会显示我的 Debug.Write()的东西。在过去一个月里,它一直显示出来。



在试用模式下,我一直使用2010版本30天(从Visual Studio 2003升级后)。我刚刚再次尝试了60天,关于Visual Studio窗口说我还剩下59天。



我已经验证了应用程序正在运行正确地,没有错误。当我故意生成错误时,输出窗口正确显示错误,堆栈跟踪我已经检查了我的Build> Configuration ...它处于Debug模式,而不是Release。 Debug.Write()文本不会转到立即窗口。



另外一点,我尝试在 Visual Studio 2010 Express Edition 中运行相同的应用程序,并且它抱怨说它无法调试指定的代码,虽然它正确地构建它,以便它将在构建中运行。 Visual Studio 2010 Express可以修改我的项目文件中的某些内容以禁用调试输出吗?我看,但我真的不知道要找什么。

解决方案

我的症状相同,不同的解决方案: p>


  1. 工具 - >选项 - >调试 - >常规

  2. 取消选中将所有输出窗口文本重定向到即时窗口

在我这样做之后,debug.print()就像以前一样进入输出窗口。

很奇怪,我从来没有检查过该选项。我所做的一切都必然导致了改变。不知道。


I am using Visual Studio 2010 Professional in trial mode... and suddenly the Output window won't show my Debug.Write() stuff. It had been showing it for the past month.

I have been using the 2010 version for 30 days (after upgrading from Visual Studio 2003) in trial mode. I just renewed the trial for the extra 60 days, and the "About Visual Studio" window says I still have 59 days left.

I have verified that the application is running properly, without errors. When I purposely generate an error, the Output Window properly shows the error and the stack trace I've already checked my Build>Configuration... it's in "Debug" mode, not "Release". The Debug.Write() text is not going to the Immediate window, either.

One other point, I tried running the same application in the Visual Studio 2010 Express Edition, and it complained that it could not debug the specified code, though it did properly build it so that it would run in the build. Could Visual Studio 2010 Express have modified something in my project files to disable the debugging output? I looked, but I really don't know what to look for.

解决方案

Same symptoms for me, different solution:

  1. Tools -> Options -> Debugging -> General
  2. Uncheck "Redirect all Output Window text to the Immediate Window"

After I did that, debug.print() went to the Output Window like it used to.

Weird that I never checked that option to begin with. Something I did must have caused the setting to change. No idea.

这篇关于Visual Studio输出窗口不显示Debug.Write()发送的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆