简体   繁体   English

在Visual Studio 2013中启用C ++项目系统日志记录

[英]Enableing c++ project system logging in Visual Studio 2013

Following this article i need to find enable visual studio logging to trace down an error. 下面这个文章,我需要找到使视觉工作室记录追踪到错误。 I found no other way for c++ to do this so i had to use the technique described in the article, but there is a problem: 我发现没有其他方法可以使c ++做到这一点,因此我不得不使用本文中介绍的技术,但是存在一个问题:

The article mentions a files \\Common7\\IDE\\devenv.exe.config that is required to be edited. 本文提到需要编辑的文件\\Common7\\IDE\\devenv.exe.config However in Visual studio 2013 Express for windows desktop there is no such file. 但是,在适用于Windows桌面的Visual Studio 2013 Express中,没有此类文件。 (1) Where can i find this file for vs2013 exp ? (1)我在哪里可以找到vs2013 exp的文件? Or is there any other way to enable debug logging for c++ ? 还是有其他方法可以为c ++启用调试日志记录?

(2) Is it possible for this file to be loaded from somewhere else since i have other versions (not express) of visual studio installed? (2)由于我安装了Visual Studio的其他版本(非快速版本),是否可以从其他地方加载此文件?

if you have it in any other location, copy and edit that. 如果您将其放在其他任何位置,请进行复制和编辑。 If not, try creating a new file with the right name and put the snippet in there. 如果不是,请尝试使用正确的名称创建一个新文件,然后将代码段放入其中。

EDIT: 编辑:

The other way to enable logging is to run MSBuild in a command line and enable logging using it. 启用日志记录的另一种方法是在命令行中运行MSBuild并使用它启用日志记录

MSBuild Myproject.vcxproj /fl /flp:logfile=mylog.log;verbosity=diagnostic

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM