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


PHP Debugger::get_stacktraces方法代码示例

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


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

示例1: count

    echo count(Debugger::get_messages());
    ?>
)
			</li>
			<?php 
}
?>

			<!-- Stacktraces -->
			<?php 
if (Kohana::$config->load('debugger.panels.stacktraces')) {
    ?>
			<li id="toggle-customs" onclick="debugToolbar.show('debug-stacktraces'); return false;">
				<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wHCAoeCX62gKYAAAKjSURBVDjLdZLLb01RFMZ/+5599s01YOA1oWgvExJEL3X5B4RImnpW1TsGxkIilA4IMTVBkOLS6IN4JSJiQkk9ImlvkZRe6hLqEU21pz17L4PeHirxjdbaa+WX/X1ZatuZnUJBoQ3Zt2IPyclJlFIAbDy1BR3zmTZhKtXpKg4017ImVYHRhoYnTeiV81ZgtCEIAxJ+gvMtGWrLa0aYlEwqYcuSaqZNKALAicNog9E+ALGRxmhDXBtyX9+R68lx8dFlANo/ZLn38n4EVEAQBgThIAD6QksGJ64wEsaYMdS3NtDW3c64xFgqFpSzbtHqCCAICT9BXBuGbIjq/PxGiifOiBYaWptoz2dx4igrXkRf0MfTrmdYsSyduYRrz68TupCi8UVUL66Emqu18rd21++N6iM3jklN85/54RtH5eit49L1JSciIs45ieV63o/ybJ2LfmOdxTob9c65UZkopVBVJzdLyaQS2rrb2VC2DoBXn15jnaV0+gKCMCCb78A6S2pGKT8HellVWh5B9fkdZ6PmTttdfg3+YjAcwkpI6EKss1HfP9SPp2KsOrGeOVNm0/m5E0b8NbQ2SdXJzaM8/5vB/qZDIiJyseWSvP2Sk02nt4sWEZRSLCxO0dWT41vf9/9mMFJXFqzOmpxEvfv6Xi60ZMjmXxLXhuVzl/E89wLrLOlkGU6GgwtdyPyieSyfuywCdn/7gKo+tVVWpyownuHcgzoyO+uihZsvbuPEcaW1kTlTZvPq02v6Bweii1RKoX3PR8c02vP4W41Pmsk8rqdx12V6B3pJJ9McaD5IZdladEwThAFxHUdTuG1BCtxhLSxOkc13/ON5JsYzaM9DEIznDwPiOo7xfBTw8cdH6h5m6Mh3YOVPgCJCVbqSmqu1+J4fvf8GW3uGwRPm74AAAAAASUVORK5CYII=" alt="stacktraces">
				stacktraces (<?php 
    echo count(Debugger::get_stacktraces());
    ?>
)
			</li>
			<?php 
}
?>

			<!-- Swap sides -->
			<li onclick="debugToolbar.swap(); return false;">
				<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAABjSURBVCjPY/zPgB8wMVCqgAVElP//x/AHDH+D4S8w/sWwl5GBgfE/MSYU/Ifphej8xbCLEaaAOBNS/yPbjIC3iHZD5P9faHqvk+gGbzQTYD76TLQbbP//hOqE6f5AvBsIRhYAysRMHy5Vf6kAAAAASUVORK5CYII=" alt="align">
			</li>
		</ul>
	</div>

	<div id="debug-toolbar-content">
开发者ID:nexeck,项目名称:kohana-debugger,代码行数:31,代码来源:toolbar.php

示例2: foreach

<div id="debug-stacktraces" class="top" style="display: none;">
	<h1>Stacktraces</h1>
	<table>
		<tbody>
		<tr>
			<th>#</th>
			<th>stacktrace</th>
		</tr>
		<?php 
foreach (Debugger::get_stacktraces() as $id => $stacktrace) {
    ?>
		<tr class="<?php 
    echo Text::alternate('odd', 'even');
    ?>
">
			<td><?php 
    echo '#' . ($id + 1);
    ?>
</td>
			<td>
				<pre><?php 
    echo $stacktrace;
    ?>
</pre>
			</td>
		</tr>
			<?php 
}
?>
		</tbody>
	</table>
开发者ID:nexeck,项目名称:kohana-debugger,代码行数:31,代码来源:stacktraces.php

示例3: _collect_data

 /**
  * Collect the data
  *
  * @static
  */
 protected static function _collect_data()
 {
     Debugger::get_benchmark_application();
     if (Kohana::$config->load('debugger.panels.benchmarks')) {
         Debugger::get_benchmark_groups();
     }
     if (Kohana::$config->load('debugger.panels.database')) {
         Debugger::get_database_queries();
     }
     if (Kohana::$config->load('debugger.panels.files')) {
         Debugger::get_files();
     }
     if (Kohana::$config->load('debugger.panels.modules')) {
         Debugger::get_modules();
     }
     if (Kohana::$config->load('debugger.panels.routes')) {
         Debugger::get_routes();
     }
     if (Kohana::$config->load('debugger.panels.messages')) {
         Debugger::get_messages();
     }
     if (Kohana::$config->load('debugger.panels.stacktraces')) {
         Debugger::get_stacktraces();
     }
 }
开发者ID:nexeck,项目名称:kohana-debugger,代码行数:30,代码来源:debugger.php


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