/Log (devenv.exe)
Logs all activity to the log file for troubleshooting. The log file is:
%APPDATA%\Roaming\Microsoft\VisualStudio\<version>\ActivityLog.xml.
where <version> is the Visual Studio version.
Devenv /log
Remarks
This switch must appear at the end of the command line, after all other switches.