Skip to content

Commit

Permalink
remove FirePHP integration and scbDebug class
Browse files Browse the repository at this point in the history
git-svn-id: http://plugins.svn.wordpress.org/scb-framework/trunk@541583 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
scribu committed May 8, 2012
1 parent 701e4c7 commit c956555
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions scb-debug.php
Expand Up @@ -42,39 +42,6 @@ function debug_filters( $tag = false ) {
echo '</pre>';
}


class scbDebug {
private $args;

function __construct($args) {
$this->args = $args;

register_shutdown_function(array($this, '_delayed'));
}

function _delayed() {
debug_a( $this->args );
}
}


// Integrate with FirePHP
function fb_debug() {
$args = func_get_args();

if ( class_exists('FirePHP') ) {
$firephp = FirePHP::getInstance(true);
$firephp->group('debug');
foreach ( $args as $arg )
$firephp->log($arg);
$firephp->groupEnd();

return;
}

new scbDebug($args);
}

function debug() {
$args = func_get_args();

Expand Down

0 comments on commit c956555

Please sign in to comment.