====== Debugger ======
This is a script that displays variables from a registered script in an in-game UI. This is useful to live debug variables without directly modifying the code. Scripts must first be registered with [[ixe:irpl:unit:registerscript|RegisterScript]].
To run, type this into the console:
run debugger  [var1 var2 ...]
Optionally, variable names can be omitted from the console command if the targeted script has a list of variable names "debugVars" present.
{{:ixe:tools:debugger.png}}
if (uiTable{args
    if (GetListCount(No target script was provided. Usage: run debugger  [var1 var2 ...]")
        true >failed
        StopConsole
    endif
    script
    GetRegisteredScriptVar(