OutputDebug

AutoHotKey

OutputDebug

发送字符串到调试器(如果有)显示出来.

OutputDebug, Text

参数

文本

要发送到调试器中显示出来的文本. 此文本可以包含换行符 (`n) 来开始新行. 此外, 一个长行可以使用 延续片段 的方法分成较短的几行.

备注

如果脚本的进程没有附加调试器, 那么系统调试器会显示此字符串. 如果系统调试器未激活, 则此命令没有效果.

调试器的一个例子是 DebugView, 它是免费的并可从 www.sysinternals.com 获取.

另请参阅: 其他调试方法

相关

FileAppend, 延续片段

示例

OutputDebug, %A_Now%: Because the window "%TargetWindowTitle%" did not exist, the process was aborted.