phpQueryObject::debug PHP Method

debug() protected method

protected debug ( $in )
    protected function debug($in)
    {
        if (!phpQuery::$debug) {
            return;
        }
        echo '<pre>';
        print_r($in);
        // file debug
        //		file_put_contents(dirname(__FILE__).'/phpQuery.log', print_r($in, true)."\n", FILE_APPEND);
        // quite handy debug trace
        //		if ( is_array($in))
        //			print_r(array_slice(debug_backtrace(), 3));
        echo "</pre>\n";
    }