Français:Debugging

TRANSLATION PENDING

Introduction
Gaia comes with a class com.gaiaframework.debug.GaiaDebug.

In AS2, GaiaDebug uses XRay.

In AS3, GaiaDebug uses Thunderbolt, which works with Firebug in Firefox.

Usage
Import the GaiaDebug class

import com.gaiaframework.debug.GaiaDebug;

log
GaiaDebug.log("If you want a trace to show up");

error
GaiaDebug.error("Something you want to show up as an error");

warn
GaiaDebug.warn("If you want a warning level debug message");

Multiple Arguments
You can pass multiple arguments in both AS2 and AS3 if you like.

GaiaDebug.log("Multiple", "messages", "can", "be", "passed");

If your pass objects, their toString method will be used, which is great for events.