0 out of 1 rated this helpful - Rate this topic

/Log (devenv.exe)

Starts Visual Studio and logs all activity to the specified log file for troubleshooting.

Devenv /log LogFile
LogFile

Required. The full path and name of the log file. The log file must already exist; a new log file will not be created.

If the log file does not exist, Visual Studio will start, and an error message will be displayed. No activity will be logged.

Description

The following example starts vsprvs and logs all activity to the MyLog.txt file.

Code

Devenv.exe /log "C:\My Files\MyLog.txt"
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
In VS2005 and above, LogFile is optional.

The activity log is useful for diagnosing problems with the integrated development environment (IDE). In particular, when the IDE attempts to load a package, information is written to the activity log.

Arguments

LogFile (Visual Studio 2005 and above)

Optional. If specified, and the file does not already exist, the file will be created. If the file cannot be created (e.g. due to insufficient write access), the log will be written to the non-localized APPDATA location instead (See below)

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.

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)

1. Click Start

2. Click "Run..."

3. Type %APPDATA%\Microsoft\VisualStudio\9.0\ActivityLog.xml

4. Press Enter