Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

windbg: Command output to text file

Tags:

windbg

How can I Save Output of a command in WinDbg to a Text File?

like image 220
Novice Avatar asked Jun 17 '09 09:06

Novice


3 Answers

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.

like image 166
Simon P Stevens Avatar answered Oct 03 '22 00:10

Simon P Stevens


You can use .logopen , all of the commands you input and response from windbg will be logged, and then use .logclose to flush the data into

like image 34
Charles Ju Avatar answered Oct 03 '22 00:10

Charles Ju


You can also do this from the WinDbg gui 'Edit>Write Window Text To File...' if you find that easier.

like image 22
EdChum Avatar answered Oct 03 '22 01:10

EdChum