Visual Studio 日志文件 [英] Visual Studio log file
问题描述
我的 Visual Studio 2008 Professional 出现以下错误:
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.
没错.我去了关于框,没有关于日志文件的内容.而且系统信息"按钮包含太多信息,我什至不知道在哪里查找有关日志文件位置的信息.我尝试了查找,使用日志",最后放弃了 - 发现太多对话框"和其他误报.
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 框架版本 3.5 SP1.
Visual Studio 2008, version 9.0.30729.1 SP; MS .NET framework version 3.5 SP1.
推荐答案
来自 文档 /Log
命令行开关:
From the documentation of the /Log
command line switch:
如果 LogFile
没有指定,两个文件将写入当前用户的非本地化的应用程序数据文件夹.非本地化的应用程序数据可以找到 Visual Studio 的文件夹来自 APPDATA
环境变量.例如,对于 Visual Studio 2008,该文件夹是%APPDATA%MicrosoftVisualStudio9.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 theAPPDATA
environment variable. For example, for Visual Studio 2008, the folder is%APPDATA%MicrosoftVisualStudio9.0
, where%APPDATA%
represents the value in theAPPDATA
environment variable.
默认情况下,这两个文件被称为ActivityLog.xml
和 ActivityLog.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屋!