windbg:命令输出到文本文件 [英] windbg: Command output to text file

查看:31
本文介绍了windbg:命令输出到文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将 WinDbg 中的命令输出保存到文本文件中?

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

推荐答案

使用 -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.

这篇关于windbg:命令输出到文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆