启动debugbar: 设置collector
428185
public function boot() {

        if (!$this->isEnabled() ) {
            return;
        }

        $debugbar = $this;
        if ( !$this->isDataPersisted() ) {
            $this->selectStorage($debugbar); // for normal request and debugbar request both
        }
        if ($this->booted) {
            return;
        }
        $this->booted = true;
        if ( isset($_REQUEST['_url']) and $_REQUEST['_url']=='/favicon.ico'
            || isset($_SERVER['REQUEST_URI']) and $_SERVER['REQUEST_URI']=='/favicon.ico'|| !$this->isEnabled()) {
            return;
        }

        $this->initCollectors();

        $renderer = $this->getJavascriptRenderer();
        $renderer->setIncludeVendors($this->config->get('include_vendors', true));
        $renderer->setBindAjaxHandlerToXHR($this->config->get('capture_ajax', true));
        $renderer->setAjaxHandlerAutoShow($this->config->get('ajax_handler_auto_show', true));
    }
1335947
def debug(func):
    """"""
    @wraps(func)
    def wrapper(*args, **kwargs):
        print("{} args: {} kwargs: {}".format(func.__name__, args, kwargs))
        return func(*args, **kwargs)

    return wrapper
431039
def get_missing_deps(self, obj):
        '''
        
        '''
        deps = self.get_deps(obj)
        ret = []
        for key in deps:
            provider = self._providers.get(key)
            if provider and provider.providable:
                continue
            ret.append(key)
        return ret
484123
def debug_box_out(self, p_min: Union[Unit, Point2, Point3], p_max: Union[Unit, Point2, Point3], color=None):
        
        self._debug_boxes.append(
            debug_pb.DebugBox(
                min=self.to_debug_point(p_min), max=self.to_debug_point(p_max), color=self.to_debug_color(color)
            )
        )
394228
def debugPreview(self, title="Debug"):
        
        haystack = Image.open(self.path)
        haystack.show()
156609
function debug( err, req, res, next ) {
        res.status( err.status || 500 );

        err.guid = uuid.v4();

        console.error( err );

        res.json( {
            error: err.message,
            message: err.userMessage,
            handled: err.handled || false,
            guid: err.guid,
            stack: err.stack
        } );
    }
1360521
function worldDebug() {
		Crafty.e( RenderingMode + ', Color' )
			.attr( {
			x: engine.world.bounds.min.x,
			y: engine.world.bounds.min.y,
			w: engine.world.bounds.max.x - engine.world.bounds.min.x,
			h: engine.world.bounds.max.y - engine.world.bounds.min.y,
			alpha: 0.5
		} )
		.color( 'green' );
	}
1067291
function Collector(inputTree, options) {
  if (!(this instanceof Collector)) {
    return new Collector(inputTree, options);
  }

  this.inputTree = inputTree;

  options = options || {};
  this.collectOptions = {
    inputFiles: options.inputFiles,
    excludes: options.excludes
  };
  this.outputFile = options.outputFile || 'imports.html';
}
1124873
def p_debugger_statement(self, p):
        
        p[0] = self.asttypes.Debugger(p[1])
        p[0].setpos(p)
1106680
def peek(init, exposes, debug=False):
    
    def _peek(store, container, _stack=None):
        args = [ store.peek(objname, container, _stack=_stack) \
            for objname in exposes ]
        if debug:
            print(args)
        return init(*args)
    return _peek
1031532
function __Collection(iterableOrGenerator) {
                    _classCallCheck(this, __Collection);

                    //#endregion
                    //#region Iterable
                    this.__iterable = null;
                    __assert(__isIterable(iterableOrGenerator) || __isGenerator(iterableOrGenerator), 'iterable or generator', iterableOrGenerator);
                    this.__iterable = iterableOrGenerator;
                }
125134
def collect(self):
        """"""
        start = time()
        self._collect_copy_specs()
        self._collect_cmd_output()
        self._collect_strings()
        fields = (self.name(), time() - start)
        self._log_debug("collected plugin '%s' in %s" % fields)
1307296
public function exportToDebugBar(DebugBar $debugBar)
    {
        $archive = $this->getCollectionRaw();

        foreach ($archive as $logentry) {
            if (false === empty($logentry)) {
                $debugBar['messages']->{$logentry['type']}($logentry['message']);
            }
        }

        /*
        $messagesCollector = new \DebugBar\DataCollector\MessagesCollector('Uprofiler');
        $messagesCollector->setDataFormatter(
            new Doozr_Formatter_Default()
        );
        $messagesCollector->addMessage('<a href="/uprofiler/index.php">link</a>');
        $debugBar->addCollector($messagesCollector);
        */

        return $debugBar;
    }
1171830
function DebugLogger(loggerName, prefix) {
  SimpleLogger.call(this, loggerName);
  this.prefix = prefix;
  this.updatePrefix = false;
  this.stackTraceDepth = 7;
}
1097274
def debugger():
    """"""
    sdb = _current[0]
    if sdb is None or not sdb.active:
        sdb = _current[0] = Sdb()
    return sdb
587509
public static function dump($debug_backtrace)
    {
        if (PHP_SAPI === 'cli') {
            self::cliDump($debug_backtrace);
        }

        ob_end_clean();
        ob_start();
        echo <<<END
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.0.0/highlight.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.0.0/styles/default.min.css" />
<script>hljs.initHighlightingOnLoad();</script>
<style>code.php.hljs{margin: -0.4em 0;}code.active{background-color:#e0e0e0;}code:before{content:attr(data-line);}code.active:before{color:#c00;font-weight:bold;}</style>
</head>
<body>
END;

        echo '<div>Dump: ' . $debug_backtrace['file'] . ':<b>' . $debug_backtrace['line'] . "</b></div>";
        echo '<pre>';
        $i = 0;
        foreach ($debug_backtrace['args'] as $data) {
            echo '<code>';
            var_dump($data);
            echo '</code>';
            $i += 1;
        }
        echo '</pre>';
        echo <<<END
</body>
</html>
END;
        exit;
    }
1021978
function() {
        var self = this;
        var containerDebugAdapter = this.get('containerDebugAdapter');
        var types;

        if (containerDebugAdapter.canCatalogEntriesByType('model')) {
          types = containerDebugAdapter.catalogEntriesByType('model');
        } else {
          types = this._getObjectsOnNamespaces();
        }

        // New adapters return strings instead of classes
        types = emberA(types).map(function(name) {
          return {
            klass: self._nameToClass(name),
            name: name
          };
        });
        types = emberA(types).filter(function(type) {
          return self.detect(type.klass);
        });

        return emberA(types);
      }