My personal handy debug script. A single script for logging to the console and to a debug file for later reference meaning you can test your game without needing to keep one eye on the console at all times.
debug_init is completely optional but will add a block of text to your debug file with some useful information about the current session.
The id is optional and is only used if you want to log the name and id of the object that ran the function.
Please feel free to request features.
End User Licence Agreement (EULA).