How can I Save Output of a command in WinDbg to a Text File?
+5
A:
Start WinDbg from the command line using the -logo option:
windbg.exe -logo logfile.txt
That will get everything done logged to the file specified. You can find more details of the command line options here.
Or, if you are already in a debugging session, you can use the .logopen command to start logging. For more info on this command see here
Or you can click edit->Open/Close log file in the WinDbg GUI.
More info on log files is here.
Simon P Stevens
2009-06-17 10:11:59
I tried it already, following is the exception raised0:000> !logexts.logo output.txtWindows API Logging Extensions v3.01LOGEXTS ERROR: DuplicateHandle failedFailed to create the shared section !!!Erroring initializing logging.0:000> !logexts.logiWindows API Logging Extensions v3.01LOGEXTS ERROR: DuplicateHandle failedFailed to create the shared section !!!Erroring initializing logging.Erroring injecting logexts.dll.
novice
2009-06-17 10:24:08
.logopen /t c:\Output.txt <- This worked , Thx
novice
2009-06-17 10:26:58