Microsoft TFS2010
From Richard's Wiki
Enable TFS Client Tracing in VS2010
See TFS Client Tracing (blogs.msdn.com)
- Shut down Visual Studio
- Using Windows Explorer navigate to the following directory: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE (replace c: with appropriate drive)
- Make a backup copy of devenv.exe.config
- Edit devenv.exe.config by adding the following before the last </configuration> :
<system.diagnostics>
<switches>
<add name="TeamFoundationSoapProxy" value="4" />
<add name="VersionControl" value="4" />
</switches>
<trace autoflush="true" indentsize="3">
<listeners>
<add name="myListener"
type="Microsoft.TeamFoundation.TeamFoundationTextWriterTraceListener,Microsoft.TeamFoundation.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
initializeData="c:\tf.log" />
<add name="perfListener" type="Microsoft.TeamFoundation.Client.PerfTraceListener,Microsoft.TeamFoundation.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
</listeners>
</trace>
</system.diagnostics>
Trace data will be written to "c:\tf.log" (initializeData attribute above). Change this file name if you prefer
- Save the file
- Start Visual Studio
- Run steps you are interested in tracing
- Open c:\tfs-tracefile.log or whatever file you specified in step 5
- This writes alot of data, so you will want to restore to the original setting when finished by copying the original file back or commenting out the lines in step 4 by surrounding the lines with <!-- and --> .