Other great resources: Official JS API docs, Scripting Forum
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 17 Current »
try { debug(text); } catch(e) { console(e.message); // error occurred }
undefined
debug("Greetings Commander!");
As of Warzone 3.1 RC3 (and earlier) the output will go to different places depending on operating system:
Windows Debugger
System console (also known as "System Messages")
View using Console.app.
Linux console
There are some plans to update the debug() function so that it always outputs to the Warzone log file regardless of operating system.
Messages sent using debug() can be put in to the Warzone log file by using the command line option:
warzone2100 --debug=script
Requires:
Changes are likely in future release (see Notes).
Jump to:
Related API features:
Add-on APIs: