SimileAjax/Debug

= SimileAjax.Debug =

Provides debugging tools for developers. The subsystem will work with any browser that provides the console object in the window context, such as Firebug in Firefox, Safari, or Chrome.

Code: http://api.simile-widgets.org/ajax/2.2.1/scripts/debug.js

Back to SimileAjax.

SimileAjax.Debug.silent

 * Type: boolean
 * Default: false
 * Description: When true, subsystem does not report anything at all.

SimileAjax.Debug.log

 * Arguments:
 * msg: string, Message to log
 * Returns: Nothing
 * Description: Informative messages to log

SimileAjax.Debug.warn

 * Arguments:
 * msg: string, Warning message to log
 * Returns: Nothing
 * Description: Problematic but not an error message to log, goes to the warn section of the console if available.

SimileAjax.Debug.exception

 * Arguments:
 * e:
 * msg: string
 * Returns: Nothing
 * Description: Error message to log, may throw to browser if parameter is set; goes to error section of the console if available.

SimileAjax.Debug.objectToString

 * Arguments:
 * o: object
 * Returns: string
 * Description: Converts an object to a string representation to get more informative messages than "[Object object]" in the log.

SimileAjax.Debug._objectToString

 * Arguments:
 * o: object
 * indent: string, amount of space to indent all lines of the conversion
 * Returns: string
 * Description: Implements SimileAjax.Debug.objectToString

Back to SimileAjax.