/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.


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


Devenv.exe /log "C:\My Files\MyLog.txt"

See Also


Devenv Command Line Switches