这可能是微不足道的,但我有一个很长的SQL查询和回声Kohana :: debug($ obj); 切断查询的尾部,将其替换为"...".
如何获得完整的东西?(如果可能的话,比var_dump更好;-))
小智 5
尝试使用Profiler.对于Kohana 3,将其放在模板中:
<div id="kohana-profiler">
<?php echo View::factory('profiler/stats') ?>
</div>
Run Code Online (Sandbox Code Playgroud)
如果您正在使用Kohana 2,只需在控制器中加载库:
$this->profiler = new Profiler;
Run Code Online (Sandbox Code Playgroud)
分析器转储时间,帖子,cookie,会话和数据库查询的详细信息.
| 归档时间: |
|
| 查看次数: |
4047 次 |
| 最近记录: |