.printf的行为跟C语言的printf函数类似。

语法

.printf [/D] [Option] "FormatString" [, Argument , ...] 

参数

/D

  指定格式字符串包含调试器标记语言(DML)。

Option

  指定WinDbg应将FormatString解释为的文本消息类型。WinDbg为每种类型的调试器命令窗口消息分配背景和文本颜色;选择其中一个选项会使消息以适当的颜色显示。默认情况下,文本显示为正常级别的         消息。以下选项可用:
  

Option Type of message Title of colors in Options dialog box

/od

debuggee

Debuggee level command window

/oD

debuggee prompt

Debuggee prompt level command window

/oe

error

Error level command window

/on

normal

Normal level command window

/op

prompt

Prompt level command window

/oP

prompt registers

Prompt registers level command window

/os

symbols

Symbol message level command window

/ov

verbose

Verbose level command window

/ow

warning

Warning level command window

FormatString

相关文章:

  • 2021-07-10
  • 2021-06-18
  • 2021-06-07
  • 2021-06-11
  • 2021-12-28
  • 2022-02-27
  • 2021-07-12
猜你喜欢
  • 2021-07-01
  • 2021-11-29
  • 2021-06-24
  • 2021-07-09
  • 2021-06-22
  • 2021-07-07
  • 2021-08-01
相关资源
相似解决方案