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


PHP Debugger::enable方法代码示例

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


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

示例1: array

<!DOCTYPE html><link rel="stylesheet" href="data/style.css">

<h1>Nette Debugger & SQL Exceptions | dibi</h1>

<p>Dibi can display and log exceptions via Nette Debugger, part of Nette Framework.</p>

<ul>
	<li>Nette Framework: http://nette.org
</ul>

<?php 
require_once 'Nette/Debugger.php';
require_once '../dibi/dibi.php';
// enable Nette Debugger
Debugger::enable();
dibi::connect(array('driver' => 'sqlite', 'database' => 'data/sample.sdb', 'profiler' => array('run' => TRUE)));
// throws error because SQL is bad
dibi::query('SELECT FROM customers WHERE customer_id < %i', 38);
开发者ID:radekdostal,项目名称:dibi,代码行数:18,代码来源:nette-debug-and-exceptions.php

示例2: session_start

<?php

session_start();
if (!isset($_SESSION['hs__'])) {
    session_regenerate_id();
    $_SESSION['hs__'] = true;
}
define('WWW_DIR', dirname(__FILE__));
require 'include/application/micka_config.php';
Debugger::enable(Debugger::PRODUCTION, CSW_LOG);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <link rel="stylesheet" type="text/css" href="themes/default/mickaMap.css">
<script type="text/javascript" src="scripts/overlib_mini.js"></script>
<script language="javascript" src="scripts/hs_dmap.js"></script>
<script language="javascript" src="scripts/micka_dmap.js"></script>
<script language="javascript" src="scripts/wz_jsgraphics.js"></script>
<script language="javascript">

HS_RESIZE=false;
HS_RIGHT=24;
HS_BOTTOM=45;
HS_TIPSOFF=true;
ol_fgcolor="#FFFFE0";
ol_bgcolor="#FFB000";
hs_initext="<?php 
echo $hs_initext;
?>
开发者ID:riskatlas,项目名称:micka,代码行数:31,代码来源:mickaMap.php

示例3: enableDebugger

 /**
  * @param  string        error log directory
  * @param  string        administrator email
  * @return void
  */
 public function enableDebugger($logDirectory = NULL, $email = NULL)
 {
     Debugger::$strictMode = TRUE;
     Debugger::enable($this->parameters['productionMode'], $logDirectory, $email);
 }
开发者ID:riskatlas,项目名称:micka,代码行数:10,代码来源:Configurator.php

示例4: isset

 // sekce map
 $hs_wms["cze"] = isset($config['map']['hs_wms_cze']) && $config['map']['hs_wms_cze'] != '' ? $config['map']['hs_wms_cze'] : '';
 $hs_wms["eng"] = isset($config['map']['hs_wms_eng']) && $config['map']['hs_wms_eng'] != '' ? $config['map']['hs_wms_eng'] : '';
 $hs_initext = isset($config['map']['hs_initext']) && $config['map']['hs_initext'] != '' ? $config['map']['hs_initext'] : '';
 $wms_client_def = isset($config['map']['wmsClient']) && $config['map']['wmsClient'] != '' ? $config['map']['wmsClient'] : '';
 $wms_client_cze = isset($config['map']['wmsClientCze']) && $config['map']['wmsClientCze'] != '' ? $config['map']['wmsClientCze'] : '';
 $wms_client_eng = isset($config['map']['wmsClientEng']) && $config['map']['wmsClientEng'] != '' ? $config['map']['wmsClientEng'] : '';
 // volitelné sekce
 if (isset($config['micka']['optionSections']) && $config['micka']['optionSections'] != '') {
     foreach (explode(',', $config['micka']['optionSections']) as $value) {
         // sekce HSRS
         if (trim($value) == 'hsrs') {
             if (isset($config['hsrs']['ladenka']) && $config['hsrs']['ladenka'] == 1) {
                 error_reporting(E_ALL ^ E_NOTICE);
                 //Debugger::$strictMode = TRUE;
                 Debugger::enable(Debugger::DEVELOPMENT, CSW_LOG);
             }
         }
         // sekce LIFERAY
         if (trim($value) == 'liferay') {
             define("LIFERAY_VALIDATE_URL", isset($config['liferay']['userValidateUrl']) ? $config['liferay']['userValidateUrl'] : '');
             //TODO
             //pathData = /web/guest/my/data
             //pathService = /web/guest/my/services
         }
         // sekce datatype
         if (trim($value) == 'datatype') {
             $md_data_type = isset($config['datatype']['mdDataType']) ? $config['datatype']['mdDataType'] : '';
         }
     }
 }
开发者ID:riskatlas,项目名称:micka,代码行数:31,代码来源:micka_config.php


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