Packagecom.desuade.debugging
Classpublic class Debug
InheritanceDebug Inheritance Object

Language Version : ActionScript 3
Since : 18.04.2009
Runtime Versions : AIR 1.0, Flash Player 9.0.0

The Debug class is used throughout all Desuade classes to provide information to developers. It allows for optional inclusion of codes to minimize file size.



Public Properties
 PropertyDefined By
  enabled : Boolean = false
[static] This enables or disables any debug output.
Debug
  level : int = 90000
[static] This defines up to what level of debug codes should be shown.
Debug
  onlyCodes : Boolean = false
[static] Only trace the code of the error, not the entire error description from the given CodeSet.
Debug
  outputMethod : Function
[static] This is the method to use to output the debugging, useful if you're not in the IDE for traces.
Debug
Public Methods
 MethodDefined By
  
load(codeset:CodeSet):void
[static] This loads a given CodeSet into the Debugger.
Debug
  
output(codeset:String, code:Number, props:Array = null):void
[static] This is method called when requesting to show information.
Debug
Property Detail
enabledproperty
public static var enabled:Boolean = false

This enables or disables any debug output. Trace output is disabled by default, setting this to true will enable all Debug.output calls.

levelproperty 
public static var level:int = 90000

This defines up to what level of debug codes should be shown. Generally, the higher the level, the more information and the more specific events are shown.

onlyCodesproperty 
public static var onlyCodes:Boolean = false

Only trace the code of the error, not the entire error description from the given CodeSet.

outputMethodproperty 
public static var outputMethod:Function

This is the method to use to output the debugging, useful if you're not in the IDE for traces.

Method Detail
load()method
public static function load(codeset:CodeSet):void

This loads a given CodeSet into the Debugger. Used to save file size and provide modularity.

Parameters

codeset:CodeSet — This is the CodeSet to load - ie: new DebugCodesMotion() or new DebugCodesPartigen()

See also

output()method 
public static function output(codeset:String, code:Number, props:Array = null):void

This is method called when requesting to show information. This traces the given debug code from a specific CodeSet, or just the code number.

Parameters

codeset:String — A string representing the name of the CodeSet used to get the code text.
 
code:Number — The code number to use from a CodeSet.
 
props:Array (default = null) — An array of properties to be passed into the code. These are respresented in the same order of "" used in the CodeSet.

See also