Sydney

Class Debug

Object
   |
   +--Debug

class Debug

Defined in debug.js


Constructor Summary
Debug ()
           
 
Method Summary
 void assert(cond, varArgs)
           Asserts that cond is true.
 void clear()
           Empties the console of any child nodes--effectively clearing it.
 void dumpArray(arr)
           Prints an array to the debug console in a nice way.
 void dumpObject(obj)
           Prints an object to the console in object-literal syntax.
 void print(varArgs)
           Prepends str to the console.
 Object setConsole(element)
           Initializes the console to element.
 void setTrace(<boolean> newTracing)
           Turns tracing on or off.
 void traceIn(funcName, args)
           Prints --> funcName([args[0][, args[1][, ...]]]) to the console.
 Object traceOut(retVal)
           Pops a function name off the tracing stack and prints it.

Constructor Detail

Debug

function Debug()
Method Detail

assert

void assert(cond, varArgs)

clear

void clear()

dumpArray

void dumpArray(arr)

dumpObject

void dumpObject(obj)

print

void print(varArgs)

setConsole

Object setConsole(element)

setTrace

void setTrace(<boolean> newTracing)

traceIn

void traceIn(funcName, args)

traceOut

Object traceOut(retVal)

Sydney

SourceForge.net Logo