Tuesday, 27 May 2014

Using sxstrace.exe

sxstrace.exe


For windows users that is working on multiple platform/machines, i.e. creating and using library might sometimes get error which suggest the use of sxstrace.exe.

The file sxstrace.exe is used to execute service Sxs Tracing Tool for processes svchost.exe and wermgr.exe, and support device drivers in computer OQO.



How to use it:-

Open command prompt as administrator. 

run command:-  sxstrace.exe Trace -logfile:test123.log

Now Run your program.
Run your binaries (either directly from explorer or open another command prompt to run the same) and click OK when you get your error message.

Press Enter key in the command prompt to stop the trace.

once completed, it generates a cryptic file in C:\windows\system32, test123.log.

The log file is generated, test123.log in a binary formatted file. 
Now this needs to be converted to  text format. Run the following command:

C:\> sxstrace.exe Parse -logfile:test123.log -outfile:test.txt

Open test.text file and you will get the needed info there.