Packageweavejs.util
Classpublic class DebugUtils
InheritanceDebugUtils Inheritance Object

Tools for debugging.



Public Methods
 MethodDefined By
  
debugId(object:Object):String
[static] This function generates or returns a previously generated identifier for an object.
DebugUtils
  
debugLookup(debugId:*):Object
[static] This function will look up the object corresponding to the specified debugId.
DebugUtils
  
debugTrace(... args):void
[static] This function calls trace() using debugId() on each parameter.
DebugUtils
  
flattenSessionState(state:Object, pathPrefix:Array = null, output:Array = null):Array
[static]
DebugUtils
  
[static]
DebugUtils
  
replaceUnknownObjectsInState(stateToModify:Object, className:String = null):Object
[static]
DebugUtils
  
[static] This will clear all saved ids and pointers to corresponding objects.
DebugUtils
  
shiftKey(reactInstance:Object):Boolean
[static]
DebugUtils
  
traverseStatePath(state:Object, path:Array):*
[static] Traverses a path in a session state using the logic used by SessionManager.
DebugUtils
  
[static]
DebugUtils
  
watch(target:ILinkableObject = null, callbackReturnsString:Function = null):void
[static]
DebugUtils
  
watchState(target:ILinkableObject = null, indent:* = null):void
[static]
DebugUtils
Method Detail
debugId()method
public static function debugId(object:Object):String

This function generates or returns a previously generated identifier for an object.

Parameters

object:Object

Returns
String
debugLookup()method 
public static function debugLookup(debugId:*):Object

This function will look up the object corresponding to the specified debugId.

Parameters

debugId:* (default = NaN) — A debugId String or integer.

Returns
Object
debugTrace()method 
public static function debugTrace(... args):void

This function calls trace() using debugId() on each parameter.

Parameters

... args

flattenSessionState()method 
public static function flattenSessionState(state:Object, pathPrefix:Array = null, output:Array = null):Array

Parameters

state:Object — A session state.
 
pathPrefix:Array (default = null)
 
output:Array (default = null)

Returns
Array — An Array of Arrays, each like [path, value].
getAllDebugIds()method 
public static function getAllDebugIds():Array

Returns
Array
replaceUnknownObjectsInState()method 
public static function replaceUnknownObjectsInState(stateToModify:Object, className:String = null):Object

Parameters

stateToModify:Object
 
className:String (default = null)

Returns
Object
resetDebugIds()method 
public static function resetDebugIds():void

This will clear all saved ids and pointers to corresponding objects.

shiftKey()method 
public static function shiftKey(reactInstance:Object):Boolean

Parameters

reactInstance:Object

Returns
Boolean
traverseStatePath()method 
public static function traverseStatePath(state:Object, path:Array):*

Traverses a path in a session state using the logic used by SessionManager.

Parameters

state:Object — A full session state.
 
path:Array — A path.

Returns
* — The session state at the specified path.
unwatch()method 
public static function unwatch(target:ILinkableObject):void

Parameters

target:ILinkableObject

watch()method 
public static function watch(target:ILinkableObject = null, callbackReturnsString:Function = null):void

Parameters

target:ILinkableObject (default = null)
 
callbackReturnsString:Function (default = null)

watchState()method 
public static function watchState(target:ILinkableObject = null, indent:* = null):void

Parameters

target:ILinkableObject (default = null)
 
indent:* (default = null)