How Can I Use sxstrace.exe? For running sxstrace.exe, go to Visual Studio command prompt and type sxstrace.exe. Usage is as follows: Before running your application, run sxstrace in trace mode sxstrace.exe Trace -logfile:C:\tmp\MySxSTrace.