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

C++Visual StudioBuild Process

C++ Problem Overview


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.

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.

C++ Solutions


Solution 1 - C++

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

Solution 2 - C++

  1. Open the project properties dialog, then choose

    Configuration PropertiesC/C++General

  2. Change the setting for Suppress Startup Banner to No

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

Solution 3 - C++

Visual Studio 2008:

Go to menu ToolsOptions then Project and SolutionsBuild and Run section. You have a combo box for verbosity.

C++ compiler option (project properties):

  • Preprocessor - Generate Preprocessed File for seeing the translation unit as generated by preprocessor
  • Advanced - Show includes - display included file names at compiler output

Solution 4 - C++

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

Solution 5 - C++

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 /VERBOSE and when linking Visual Studio will show a lot more information.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGeoView Question on Stackoverflow
Solution 1 - C++Sam HarwellView Answer on Stackoverflow
Solution 2 - C++Tim DowtyView Answer on Stackoverflow
Solution 3 - C++Cătălin PitișView Answer on Stackoverflow
Solution 4 - C++JoeView Answer on Stackoverflow
Solution 5 - C++javier-sanzView Answer on Stackoverflow