且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio 2008中:如何跟踪,调试和控制台输出重定向到输出窗口?

更新时间:2023-12-05 12:50:46

跟踪,调试和控制台去输出窗口,如果你从下拉菜单和应用程序的输出选项显示输出选择Debug选择(右键点击输出窗口)。

Trace, Debug, and Console go to the Output window if you select Debug in the Show output from drop down and the Program Output option is selected (right click in output window).

AFAIK控制台只重定向到输出非控制台应用程序。检查项目属性,并确保它说,无论是类库或Windows应用程序的输出类型下拉。

AFAIK console is only redirected to output for non-console applications. Check the project properties and make sure it says either Class Library or Windows Application in the output type drop down.