写入Visual Studio的输出窗口 - Writing to output window of Visual Studio

问题:

I am trying to write a message to the output window for debugging purposes. 我正在尝试将一条消息写入输出窗口以进行调试。 I searched for a function like Java's system.out.println("") . 我搜索了像Java的system.out.println("")这样的函数。 I tried Debug.Write , Console.Write , and Trace.Write . 我试过Debug.WriteConsole.WriteTrace.Write It does not give an error, but it does not print anything either. 它不会出错,但也不会打印任何内容。 ide

"Define DEBUG constant" and "Define TRACE constant" options are checked. 选中“定义DEBUG常量”和“定义TRACE常量”选项。 函数

Menu ToolsOptionsDebugging"Redirect all Output Window text to the Immediate Window" option is not checked. 菜单工具选项调试“将全部输出窗口文本重定向到当即窗口”选项未选中。 工具

Configuration: Active (Debug) 配置:活动(调试) url

Note: I created a project with the wizard as "Windows Forms Application" if relevant. 注意:若是相关,我建立了一个项目,向导为“Windows窗体应用程序”。 I have no idea where to look. 我不知道在哪里看。 idea


解决方案:

参考一: https://stackoom.com/question/dikw/写入Visual-Studio的输出窗口
参考二: https://oldbug.net/q/dikw/Writing-to-output-window-of-Visual-Studio
相关文章
相关标签/搜索