kts.DebugPrint

Name

kts.DebugPrint – print a string to the console

Synopsis

result = kts.DebugPrint(message)

Description

This function takes one parameter which should be a string. The string will be printed to the game process's 'stdout'.

On Windows, if the process does not have a 'stdout' (e.g. because it was launched directly from the Start menu) then a new console window will be opened, and the message will appear there.

This is useful for printing debug messages or other strings that you don't want to appear in the actual in-game "Messages" window.

Return Value

No value is returned.

Bugs

Ideally this function would allow multiple parameters to be passed (just like the built-in Lua print function).

See Also

print