且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

windbg:命令输出到文本文件

更新时间:2023-12-05 12:46:10

使用 -logo 选项从命令行启动 WinDbg:

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.

或者,如果您已经在调试会话中,您可以使用 .logopen 命令开始记录.有关此命令的详细信息,请参阅 此处

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

或者您可以在 WinDbg GUI 中单击编辑->打开/关闭日志文件.

Or you can click edit->Open/Close log file in the WinDbg GUI.

有关日志文件的更多信息位于此处.

More info on log files is here.