Visual Studio日志文件 [英] Visual Studio log file

查看:387
本文介绍了Visual Studio日志文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Visual Studio 2008专业版给了我以下错误:

My Visual Studio 2008 Professional gave me the following error:

应用.欲获得更多信息 请参阅日志文件.它的路径是 在关于"框中列出.

An error has occurred in the application. For more information please see the log file. Its path is listed in the About box.

权利.我转到关于"框,关于日志文件没有任何内容.而且系统信息"按钮具有太多信息,以至于我什至都不知道在哪里可以找到有关日志文件位置的信息.我尝试使用"log"进行查找,最后放弃了–发现太多"dialog"和其他误报.

Riiight. I went to the About box, and there is nothing about a log file. And the System Info button has so much information, that I can't even figure out where to look for information on the location of a log file. I tried the find, using 'log', and finally gave up -- there are too many 'dialog' and other false positives found.

那么,该日志文件在哪里?

So, where is that log file?

Visual Studio 2008,版本9.0.30729.1 SP; MS .NET Framework 3.5 SP1.

Visual Studio 2008, version 9.0.30729.1 SP; MS .NET framework version 3.5 SP1.

推荐答案

来自

From the documentation of the /Log command line switch:

如果未指定LogFile,则两个文件 将被写入当前用户的 非本地化的应用程序数据文件夹. 非本地化的应用程序数据 可以找到Visual Studio的文件夹 来自APPDATA环境变量. 例如,对于Visual Studio 2008, 该文件夹是 %APPDATA%\Microsoft\VisualStudio\9.0 , 其中%APPDATA%代表值 在APPDATA环境变量中.

If LogFile is not specified, two files will be written to the current user's non-localized application data folder. The non-localized application data folder for Visual Studio can be found from the APPDATA environment variable. For example, for Visual Studio 2008, the folder is %APPDATA%\Microsoft\VisualStudio\9.0, where %APPDATA% represents the value in the APPDATA environment variable.

默认情况下,这两个文件名为 ActivityLog.xmlActivityLog.xsl. 前者包含活动日志 数据,后者是XML样式 床单提供了更方便的 查看XML文件的方法.要查看 活动登录您的默认XML 查看器(例如Internet Explorer)

The two files are, by default, called ActivityLog.xml and ActivityLog.xsl. The former contains the activity log data and the latter is an XML style sheet which provides a more convenient way to view the XML file. To view the Activity log in your default XML viewer (e.g. Internet Explorer)

您可能必须使用/Log开关运行devenv,才能创建这些文件.默认情况下,Visual Studio似乎没有记录任何内容.

You will probably have to run devenv with the /Log switch for these files to be created. Visual Studio doesn't seem to log anything by default.

这篇关于Visual Studio日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆