Namespace: Extensions

Responsiville.Debug. Extensions

Special scope which contains debugging functions that may be injected in any object's prototype so that it is extended with debugging capabilities as if it had inherited them. Not meant to be used autonomously.

Methods

staticResponsiville.Debug.Extensions.dir(arguments){void}

Wrapper for the console dir function that pretty prints an object inside the log scope of the current scope object using its code name. Responsiville objects are (ie they inherit) this method for convienence in debugging. It follows the debug option of the main Responsiville object in order to be verbose or quiet.
Name Type Description
arguments Object repeatable Arbitrary number of objects to be displayed in a pretty printed way in the browser console.
Returns:
Type Description
void

staticResponsiville.Debug.Extensions.log(arguments){void}

Wrapper for the console log function that pretty prints log messages inside the log scope of the current scope object using its code name. Responsiville objects are injected (ie they inherit) this method for convienence in debugging. It follows the debug option of the main Responsiville object in order to be verbose or quiet.
Name Type Description
arguments String repeatable Arbitrary number of string messages to be logged in the browser console.
Returns:
Type Description
void

staticResponsiville.Debug.Extensions.printAPI(){void}

Prints the available functions of the current scope object. A quick and convenient way of printing an object's API. Responsiville objects are injected (ie they inherit) this method for convienence in debugging. It follows the debug option of the main Responsiville object in order to be verbose or quiet.
Returns:
Type Description
void