OutputDebug

Sends a string to the debugger (if any) for display.

OutputDebug Text

Parameters

Text

Type: String

The text to send to the debugger for display. This text may include linefeed characters (`n) to start new lines. In addition, a single long line can be broken up into several shorter ones by means of a continuation section.

Remarks

If the script's process has no debugger, the system debugger displays the string. If the system debugger is not active, this function has no effect.

One example of a debugger is DebugView, which is free and available at microsoft.com.

See also: other debugging methods

FileAppend, continuation sections

OutputDebugLine

Sends text to the debugger and appends the current platform's line ending.

This function is exported by the KS module.

OutputDebugLine(Text)

ShowDebug

Shows the main window and focuses its debug-output tab.

This function is exported by the KS module.

ShowDebug()

Examples

Sends a string to the debugger (if any) for display.

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