Sends a string to the debugger (if any) for display.
OutputDebug 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.
If the script's process has no debugger, the system debugger displays the string. If the system debugger is not active, the string reaches only the debug tab described below. A .NET debugger attached to the script's process receives the string in place of the system debugger.
One example of a debugger is DebugView, which is free and available at microsoft.com.
The string is also kept for the debug tab of the script's main window, which ShowDebug displays. The tab holds the most recent output, up to about a million characters.
On Linux and macOS, the string reaches an attached .NET debugger and the debug tab only.
See also: other debugging methods
FileAppend, continuation sections
Sends text to the debugger and appends the current platform's line ending.
This function is exported by the KS module.
OutputDebugLine(Text)
Shows the main window and focuses its debug-output tab.
This function is exported by the KS module.
ShowDebug()