Visual Studio 2010输出窗口缺少调试信息

时间:2023-01-06 11:20:21

I am trying to write some output from my unit tests using System.Diagnostics.Debug.WriteLine(...)

我试图使用System.Diagnostics.Debug.WriteLine(...)从我的单元测试中编写一些输出

The problem is, each time I run the test, I cannot see the debug info in the output window. It was working fine and for some reason the debug option is now missing in show output from drop down.

问题是,每次运行测试时,我都无法在输出窗口中看到调试信息。它运行正常,由于某种原因,现在在下拉显示输出中缺少调试选项。

Here is screenshot: Visual Studio 2010输出窗口缺少调试信息

这是截图:

2 个解决方案

#1


0  

Make sure your build output is set to the appropriate verbosity by setting the following options in Tools > Options:

通过在工具>选项中设置以下选项,确保将构建输出设置为适当的详细程度:

Visual Studio 2010输出窗口缺少调试信息

If that doesn't work, there are further suggestions available here.

如果这不起作用,可以在此处获得进一步的建议。

#2


0  

I figured it out:

我想到了:

I noticed in my Test Results window, after running the test, next to the little success green circle , there is another icon, i doubled clicked it. It was my test results, and it included all of the types of debug messages.

我注意到在我的测试结果窗口中,在运行测试后,在小成功的绿色圆圈旁边,有另一个图标,我加倍点击它。这是我的测试结果,它包含了所有类型的调试消息。

Visual Studio 2010输出窗口缺少调试信息

#1


0  

Make sure your build output is set to the appropriate verbosity by setting the following options in Tools > Options:

通过在工具>选项中设置以下选项,确保将构建输出设置为适当的详细程度:

Visual Studio 2010输出窗口缺少调试信息

If that doesn't work, there are further suggestions available here.

如果这不起作用,可以在此处获得进一步的建议。

#2


0  

I figured it out:

我想到了:

I noticed in my Test Results window, after running the test, next to the little success green circle , there is another icon, i doubled clicked it. It was my test results, and it included all of the types of debug messages.

我注意到在我的测试结果窗口中,在运行测试后,在小成功的绿色圆圈旁边,有另一个图标,我加倍点击它。这是我的测试结果,它包含了所有类型的调试消息。

Visual Studio 2010输出窗口缺少调试信息