B2G/gecko/toolkit/components/url-classifier/content/moz/debug.js
/**
 * The debug service handles auto-registration of zones, namespacing
 * the zones preferences, and various global settings such as whether
 * all zones are enabled.
 *
 * @constructor
 * @param opt_prefix Optional string indicating the unique prefix we should 
 *                   use when creating preferences
 */
The debug service handles auto-registration of zones, namespacing
the zones preferences, and various global settings such as whether
all zones are enabled.

@constructor
@param opt_prefix Optional string indicating the unique prefix we should
use when creating preferences
The debug service handles auto - registration of zones namespacing the zones preferences and various global settings such as whether all zones are enabled . @constructor @param opt_prefix Optional string indicating the unique prefix we should use when creating preferences
function G_DebugService(opt_prefix) {
  if (G_GDEBUG) {
    this.prefix_ = opt_prefix ? opt_prefix : "safebrowsing-debug-service";
    this.consoleEnabledPrefName_ = this.prefix_ + ".alsologtoconsole";
    this.allZonesEnabledPrefName_ = this.prefix_ + ".enableallzones";
    this.callTracingEnabledPrefName_ = this.prefix_ + ".trace-function-calls";
    this.logFileEnabledPrefName_ = this.prefix_ + ".logfileenabled";
    this.logFileErrorLevelPrefName_ = this.prefix_ + ".logfile-errorlevel";
    this.zones_ = {};
    this.loggifier = new G_Loggifier();
    this.settings_ = new G_DebugSettings();
  }
}
function G_DebugService ( opt_prefix ) { if ( G_GDEBUG ) { this . prefix_ = opt_prefix ? opt_prefix : "safebrowsing-debug-service" ; this . consoleEnabledPrefName_ = this . prefix_ + ".alsologtoconsole" ; this . allZonesEnabledPrefName_ = this . prefix_ + ".enableallzones" ; this . callTracingEnabledPrefName_ = this . prefix_ + ".trace-function-calls" ; this . logFileEnabledPrefName_ = this . prefix_ + ".logfileenabled" ; this . logFileErrorLevelPrefName_ = this . prefix_ + ".logfile-errorlevel" ; this . zones_ = { } ; this . loggifier = new G_Loggifier ( ) ; this . settings_ = new G_DebugSettings ( ) ; } }
The debug service handles auto-registration of zones, namespacing
 the zones preferences, and various global settings such as whether
 all zones are enabled.
The debug service handles auto - registration of zones namespacing the zones preferences and various global settings such as whether all zones are enabled .