# PGDebug.lua¶

## Functions¶

### function DebugEventAlert(event, params)¶

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

Appears to be non-functional

Popups don’t seem to work properly. Even when using the debug build.

### function MessageBox(...)¶

Opens a message box that contains the input string.

Appears to be non-functional

Popups don’t seem to work properly. Even when using the debug build.

### 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.