Click to Rate and Give Feedback
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio
/Log (devenv.exe)

Updated: November 2007

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"
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
In VS2005 and above, LogFile is optional.      Paul Harrington   |   Edit   |  

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

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker