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

我与影子孤独终老i 提交于 2019-12-17 04:47:54

问题


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.


回答1:


  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.




回答2:


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




回答3:


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



回答4:


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




回答5:


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.



来源:https://stackoverflow.com/questions/1211841/how-can-i-make-visual-studios-build-be-very-verbose

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!