Skip to content

PGDebug.lua

Functions


function DebugEventAlert(event, params)

Opens a message box that contains the handled event and its parameters.

Debug Build Required


function MessageBox(...)

Opens a message box that contains the input string.

Debug Build Required


function ScriptMessage(...)

Prints a message to the AILog.txtif the command aiff script has been used in the ingame console.


function DebugMessage(...)

Prints a debug message to the AILog.txtif the command aiff script has been used in the ingame console.


function OutputDebug(...)

Prints a debug message directly to the LogFile.txt. Usually used as Error Log.


function ScriptError(...)

Prints an error log to LogFile.txt and AILog.txt including a stack trace.


function DebugPrintTable(unit_table)

Unpacks a table and prints its content to the AILog.txt if the command aiff script has been used in the ingame console.

Warning

Only designed to unwrap tables that directly contain objects. Not suitable to unwrap any table.


Authors: Lukas Grünwald