Applies to: Visual Studio Visual Studio for Mac Visual Studio Code
Logs all activity to the log file for troubleshooting. This file appears after you've called
devenv /log at least once. By default, the log file is located here:
where <Version> is the Visual Studio version. However, you may specify a different path and file name.
devenv /Log NameOfLogFile
Required. The full path and name of the log file to save to.
This switch must appear at the end of the command line, after all other switches.
The log is written only for all instances of Visual Studio that you've opened with the
This example directs logging to the
MyVSLog.xml file in the user's home directory.
devenv /log "%USERPROFILE%\MyVSLog.xml"
Submit and view feedback for