Mod:Creation Kit/TraceSelf - Debug

Member of: Mod:Creation Kit/Debug Script

Outputs a string to the Papyrus log on disk, and the Papyrus overlay, pretty-printing the passed in self object and function name.

The output format is: "[Script]-->FunctionName: Text"

Syntax
Function TraceSelf(ScriptObject CallingScript, string FunctionName, string StringToTrace) global debugOnly

Parameters

 * CallingScript: The script to print out
 * FunctionName: The function name to print out
 * StringToTrace: The text that should be printed to the log and text page.

Return Value
None

Examples
Debug.TraceSelf(self, "DoStuff", "Hello World!")
 * Outputs something like: "[MyScript (020001FD83)]-->DoStuff: Hello World!"