Packageorg.paazio.utils
Classpublic class Console

Firebug adds a global variable named "console" to all web pages loaded in Firefox. This object contains many methods that allow you to write to the Firebug console to expose information that is flowing through your scripts.



Public Methods
 MethodDefined by
  
assert(... rest):void
[static] Tests that an expression is true.
Console
  
count(name:String = null):void
[static] Writes the number of times that the line of code where count was called was executed.
Console
  
debug(... rest):void
[static] Writes a message to the console, including a hyperlink to the line where it was called.
Console
  
dir(object:Object):void
[static] Prints an interactive listing of all properties of the object.
Console
  
dirxml(object:XML):void
[static] Prints the XML source tree of an HTML or XML element.
Console
  
error(... rest):void
[static] Writes a message to the console with the visual "error" icon and color coding and a hyperlink to the line where it was called.
Console
  
group(... rest):void
[static] Writes a message to the console and opens a nested block to indent all future messages sent to the console.
Console
  
groupEnd():void
[static] Closes the most recently opened block created by a call to console.group.
Console
  
info(... rest):void
[static] Writes a message to the console with the visual "info" icon and color coding and a hyperlink to the line where it was called.
Console
  
log(... rest):void
[static] Writes a message to the console.
Console
  
profile(title:String):void
[static] Turns on the JavaScript profiler.
Console
  
profileEnd():void
[static] Turns off the JavaScript profiler and prints its report.
Console
  
time(name:String):void
[static] Creates a new timer under the given name.
Console
  
timeEnd(name:String):void
[static] Stops a timer created by a call to console.time(name) and writes the time elapsed.
Console
  
traceStack():void
[static] Prints an interactive stack trace of JavaScript execution at the point where it is called.
Console
  
warn(... rest):void
[static] Writes a message to the console with the visual "warning" icon and color coding and a hyperlink to the line where it was called.
Console
Method detail
assert()method
public static function assert(... rest):void

Tests that an expression is true. If not, it will write a message to the console and throw an exception.

Parameters
... rest
count()method 
public static function count(name:String = null):void

Writes the number of times that the line of code where count was called was executed. The optional argument title will print a message in addition to the number of the count.

Parameters
name:String (default = null)
debug()method 
public static function debug(... rest):void

Writes a message to the console, including a hyperlink to the line where it was called.

Parameters
... rest
dir()method 
public static function dir(object:Object):void

Prints an interactive listing of all properties of the object. This looks identical to the view that you would see in the DOM tab.

Parameters
object:Object
dirxml()method 
public static function dirxml(object:XML):void

Prints the XML source tree of an HTML or XML element. This looks identical to the view that you would see in the HTML tab. You can click on any node to inspect it in the HTML tab.

Parameters
object:XML
error()method 
public static function error(... rest):void

Writes a message to the console with the visual "error" icon and color coding and a hyperlink to the line where it was called.

Parameters
... rest
group()method 
public static function group(... rest):void

Writes a message to the console and opens a nested block to indent all future messages sent to the console. Call console.groupEnd() to close the block.

Parameters
... rest
groupEnd()method 
public static function groupEnd():void

Closes the most recently opened block created by a call to console.group.

info()method 
public static function info(... rest):void

Writes a message to the console with the visual "info" icon and color coding and a hyperlink to the line where it was called.

Parameters
... rest
log()method 
public static function log(... rest):void

Writes a message to the console. You may pass as many arguments as you'd like, and they will be joined together in a space-delimited line.

Parameters
... rest
profile()method 
public static function profile(title:String):void

Turns on the JavaScript profiler. The optional argument title would contain the text to be printed in the header of the profile report.

Parameters
title:String
profileEnd()method 
public static function profileEnd():void

Turns off the JavaScript profiler and prints its report.

time()method 
public static function time(name:String):void

Creates a new timer under the given name. Call console.timeEnd(name) with the same name to stop the timer and print the time elapsed..

Parameters
name:String
timeEnd()method 
public static function timeEnd(name:String):void

Stops a timer created by a call to console.time(name) and writes the time elapsed.

Parameters
name:String
traceStack()method 
public static function traceStack():void

Prints an interactive stack trace of JavaScript execution at the point where it is called. The stack trace details the functions on the stack, as well as the values that were passed as arguments to each function. You can click each function to take you to its source in the Script tab, and click each argument value to inspect it in the DOM or HTML tabs.

warn()method 
public static function warn(... rest):void

Writes a message to the console with the visual "warning" icon and color coding and a hyperlink to the line where it was called.

Parameters
... rest