当前位置: 首页>>代码示例>>PHP>>正文


PHP FirePHP::plugin方法代码示例

本文整理汇总了PHP中FirePHP::plugin方法的典型用法代码示例。如果您正苦于以下问题:PHP FirePHP::plugin方法的具体用法?PHP FirePHP::plugin怎么用?PHP FirePHP::plugin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FirePHP的用法示例。


在下文中一共展示了FirePHP::plugin方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 function __construct()
 {
     $this->console = FirePHP::to("page")->console();
     $this->console = $this->console->options(array('encoder.trace.offsetAdjustment' => 1));
     $this->engine = FirePHP::plugin('engine');
     $this->engine->onException($this->console);
 }
开发者ID:janym,项目名称:angular-yii,代码行数:7,代码来源:PageConsole-TraceOffsets.php

示例2: trapProblems

 public function trapProblems($console = false)
 {
     if (!$console) {
         $console = FirePHP::to('page')->console('Problems');
     }
     $engine = FirePHP::plugin('engine');
     $engine->onError($console);
     $engine->onAssertionError($console);
     $engine->onException($console);
 }
开发者ID:jerfowler,项目名称:firephp-libs,代码行数:10,代码来源:FirePHP.php

示例3: define

<?php

// NOTE: You must have FirePHP Companion installed (http://www.christophdorn.com/Tools/)
// See FirePHP Companion and Firebug Console for result
define('INSIGHT_CONFIG_PATH', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'package.json');
require_once 'FirePHP/Init.php';
$firephp = FirePHP::plugin("firephp");
$firephp->declareP();
p('Hey there Firebug Console', 'Variable Label');
$firephp->declareP('Ad-hock', true);
p('Hey there Ad-hock Console', 'Variable Label');
$console = FirePHP::to('request')->console('Debug');
$firephp->declareP($console, true);
p('Hey there Debug Console', 'Variable Label');
开发者ID:janym,项目名称:angular-yii,代码行数:14,代码来源:FirePHP-declareP.php

示例4: p

function p($data, $label = null)
{
    FirePHP::plugin("firephp")->p($data, $label);
}
开发者ID:janym,项目名称:angular-yii,代码行数:4,代码来源:p.php

示例5: define

<?php

// NOTE: You must have FirePHP Companion installed (http://www.christophdorn.com/Tools/)
// See FirePHP Companion or Firebug Console for result (depending on $_GET['target'])
define('INSIGHT_CONFIG_PATH', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'package.json');
require_once 'FirePHP/Init.php';
$console = FirePHP::to('page')->console('Problems');
if (isset($_GET['target'])) {
    // set by the drop-down in the reference
    $console = FirePHP::to($_GET['target'])->console('Problems');
    if ($_GET['target'] == 'request') {
        FirePHP::to('controller')->triggerInspect();
    }
}
$console = $console->expand();
$engine = FirePHP::plugin('engine');
$engine->onException($console);
throw new Exception('Test Exception');
开发者ID:janym,项目名称:angular-yii,代码行数:18,代码来源:Engine-OnException.php

示例6: define

    /*i*/
}
/*i*/
define('INSIGHT_IPS', '*');
/*i*/
define('INSIGHT_AUTHKEYS', '*');
/*i*/
define('INSIGHT_PATHS', dirname(__FILE__));
/*i*/
define('INSIGHT_SERVER_PATH', './index.php');
/*i*/
require_once 'FirePHP/Init.php';
/*i*/
FirePHP::plugin('firephp')->trapProblems();
/*i*/
FirePHP::plugin('firephp')->recordEnvironment(FirePHP::to('request')->console('Environment')->on('Show Environment'));
/*i*/
FirePHP::to('request')->console('Feed')->info('Startup');
// Application Code
require_once dirname(__FILE__) . '/feed.php';
$feed = new Feed('http://www.phpdeveloper.org/feed');
$items = $feed->getItems();
echo '<p><b>See:</b> <a target="_blank" href="http://www.christophdorn.com/Blog/2010/08/24/gain-insight-into-your-cache-interaction-with-firephp-companion/">http://www.christophdorn.com/Blog/2010/08/24/gain-insight-into-your-cache-interaction-with-firephp-companion/</a></p>' . "\n";
if ($feed->didLoad()) {
    echo '<p><b>Loading feed from: ' . $feed->getUrl() . '</b></p>' . "\n";
}
foreach ($items as $item) {
    echo '<p><a href="' . $item['link'] . '">' . $item['title'] . '</a></p>' . "\n";
}
/*i*/
FirePHP::to('request')->console('Feed')->info('Shutdown');
开发者ID:janym,项目名称:angular-yii,代码行数:31,代码来源:index.php

示例7: define

<?php

// NOTE: You must have FirePHP Companion installed (http://www.christophdorn.com/Tools/)
// See FirePHP Companion or Firebug Console for result (depending on $_GET['target'])
define('INSIGHT_CONFIG_PATH', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'package.json');
require_once 'FirePHP/Init.php';
$console = FirePHP::to('page')->console('Problems');
if (isset($_GET['target'])) {
    // set by the drop-down in the reference
    $console = FirePHP::to($_GET['target'])->console('Problems');
    if ($_GET['target'] == 'request') {
        FirePHP::to('controller')->triggerInspect();
    }
}
$console = $console->expand();
$engine = FirePHP::plugin('engine');
$engine->onException($console);
try {
    throw new Exception('First Test Exception');
} catch (Exception $e) {
    $engine->handleException($e);
}
try {
    throw new Exception('Second Test Exception');
} catch (Exception $e) {
    FirePHP::plugin('engine')->handleException($e);
}
开发者ID:janym,项目名称:angular-yii,代码行数:27,代码来源:Engine-HandleException.php

示例8: define

<?php

// NOTE: You must have FirePHP Companion installed (http://www.christophdorn.com/Tools/)
// See FirePHP Companion or Firebug Console for result (depending on $_GET['target'])
define('INSIGHT_CONFIG_PATH', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'package.json');
require_once 'FirePHP/Init.php';
$console = FirePHP::to('page')->console('Problems');
if (isset($_GET['target'])) {
    // set by the drop-down in the reference
    $console = FirePHP::to($_GET['target'])->console('Problems');
    if ($_GET['target'] == 'request') {
        FirePHP::to('controller')->triggerInspect();
    }
}
FirePHP::plugin("firephp")->trapProblems($console);
$var = false;
assert('$var===true');
trigger_error('Test Error');
throw new Exception("Test Exception");
开发者ID:janym,项目名称:angular-yii,代码行数:19,代码来源:FirePHP-TrapProblems.php

示例9: define

<?php

// NOTE: You must have FirePHP Companion installed (http://www.christophdorn.com/Tools/)
// See FirePHP Companion or Firebug Console for result (depending on $_GET['target'])
define('INSIGHT_CONFIG_PATH', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'package.json');
require_once 'FirePHP/Init.php';
$console = FirePHP::to('page')->console('Problems');
if (isset($_GET['target'])) {
    // set by the drop-down in the reference
    $console = FirePHP::to($_GET['target'])->console('Problems');
    if ($_GET['target'] == 'request') {
        FirePHP::to('controller')->triggerInspect();
    }
}
FirePHP::plugin("firephp")->recordEnvironment($console);
开发者ID:janym,项目名称:angular-yii,代码行数:15,代码来源:FirePHP-RecordEnvironment.php

示例10: define

<?php

// NOTE: You must have FirePHP Companion installed (http://www.christophdorn.com/Tools/)
// See FirePHP Companion or Firebug Console for result (depending on $_GET['target'])
define('INSIGHT_CONFIG_PATH', dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'package.json');
require_once 'FirePHP/Init.php';
$console = FirePHP::to('page')->console('Problems');
if (isset($_GET['target'])) {
    // set by the drop-down in the reference
    $console = FirePHP::to($_GET['target'])->console('FirePHP');
    if ($_GET['target'] == 'request') {
        FirePHP::to('controller')->triggerInspect();
    }
}
FirePHP::plugin("firephp")->logVersion($console);
开发者ID:janym,项目名称:angular-yii,代码行数:15,代码来源:FirePHP-LogVersion.php


注:本文中的FirePHP::plugin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。