C++ 如何使 Visual Studio 的构建变得非常冗长?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1211841/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 19:11:57  来源:igfitidea点击:

How can I make Visual Studio's build be very verbose?

c++visual-studiobuild-process

提问by Geo

I need to get a hold of every flag, every switch used in the build process by the Visual Studio binaries. I tried to obtain a verbose output by using vcbuild, but I wasn't able.

我需要掌握 Visual Studio 二进制文件在构建过程中使用的每个标志和每个开关。我试图通过使用获得详细的输出vcbuild,但我不能。

What do I have to do to see everything performed by Visual Studio for me? It's not necessary to obtain the output in the build window. Anywhere would be fine.

我需要做什么才能看到 Visual Studio 为我执行的所有操作?没有必要在构建窗口中获取输出。哪里都可以。

采纳答案by Tim Dowty

  1. Open the project properties dialog, then choose

    Configuration PropertiesC/C++General

  2. Change the setting for Suppress Startup Bannerto No

  3. The clcommand line(s) will be shown in the output window.

  1. 打开项目属性对话框,然后选择

    配置属性C/C++常规

  2. 更改设置Suppress Startup BannerNo

  3. 所述cl命令线(S)将在输出窗口中显示。

回答by Sam Harwell

Menu ToolsOptionsProjects and SolutionsBuild and RunMSBuild project build output verbosity: Diagnostic

菜单工具选项项目和解决方案构建和运行MSBuild 项目构建输出详细信息诊断

回答by C?t?lin Piti?

Visual Studio 2008:

视觉工作室 2008:

Go to menu ToolsOptionsthen Project and SolutionsBuild and Runsection. You have a combo box for verbosity.

转到菜单工具选项,然后是项目和解决方案构建和运行部分。你有一个详细的组合框。

C++ compiler option (project properties):

C++ 编译器选项(项目属性):

  • Preprocessor - Generate Preprocessed File for seeing the translation unit as generated by preprocessor
  • Advanced - Show includes - display included file names at compiler output
  • 预处理器 - 生成预处理文件以查看预处理器生成的翻译单元
  • 高级 - 显示包含 - 在编译器输出中显示包含的文件名

回答by Joe

If you're running MSBuild, you can set the /v:diag flag.

如果您正在运行 MSBuild,则可以设置 /v:diag 标志。

回答by javier-sanz

In Visual Studio go to your project and right click on it and select properties. In Linker there is a command line option. There you have all the options and you can add your custom ones. Add /VERBOSEand when linking Visual Studio will show a lot more information.

在 Visual Studio 中,转到您的项目并右键单击它并选择属性。在链接器中有一个命令行选项。在那里你有所有的选项,你可以添加你的自定义选项。添加/VERBOSE和链接时 Visual Studio 将显示更多信息。