本文介绍了VisualStudio:没有调试输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图调试一个C#应用程序。方法:

  System.Diagnostics.Debug.WriteLine(something); 

应该做的工作,但在输出窗口(设置为调试和所有选项激活)我看不到我想写的一行。任何想法?
谢谢



编辑:
我正在使用VS2008

解决方案

在Tools-Options-Debugging-General下面有一个选项,将所有输出窗口文本重定向到立即窗口。确保已禁用。但是,默认情况下不是这样,所以我怀疑这是你的问题。您也可以检查您的立即窗口以查看是否输出。



您可能还想尝试重置所有环境设置。 (工具 - 导入和导出设置 - 重置所有设置。)


I'm trying to debug a C# application. The method:

System.Diagnostics.Debug.WriteLine("something");

should do the work, but in the Output window (set to "debug" and with all the options activated) I can't see a single line I'm trying to write. Any idea?Thanks

EDIT:I'm using VS2008

解决方案

There's an option under Tools-Options-Debugging-General, Redirect all Output Window text to the Immediate Window. Make sure that's disabled. However, by default it isn't, so I doubt that's your issue. You can also just check your Immediate Window to see if it's outputting there.

You might also want to try resetting all your environment settings. (Tools - Import and Export Settings - Reset all settings.)

这篇关于VisualStudio:没有调试输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 11:28