Laravel 调试利器 —— Laravel Debugbar 扩展包安装及使用教程(转)

论坛 期权论坛     
选择匿名的用户   2021-5-22 18:29   42   0
<h1 style="margin:0px 0px 5px; font-family:&#39;Helvetica Neue&#39;,Helvetica,Tahoma,Arial,STXihei,&#39;Microsoft YaHei&#39;,微软雅黑,sans-serif; font-weight:normal; line-height:1.5em; color:rgb(51,51,51); font-size:24px"> Laravel 调试利器 —— Laravel Debugbar 扩展包安装及使用教程</h1>
<div class="article_meta" style="color:rgb(153,153,153); padding-bottom:5px; border-bottom-width:1px; border-bottom-style:dashed; border-bottom-color:rgb(211,211,211); font-size:14px; font-family:&#39;Helvetica Neue&#39;,Helvetica,Tahoma,Arial,STXihei,&#39;Microsoft YaHei&#39;,微软雅黑,sans-serif; line-height:21px">
<div style="margin-bottom:5px">
  <span class="timestamp" style="margin-right:5px">时间 2015-12-24 09:57:09 </span>
  <span class="from" style="margin-right:5px"><span class="icon-globe" style=""></span> <a class="cut cut28 from" href="http://www.tuicool.com/sites/6Rzeui" rel="noopener noreferrer" style="color:rgb(51,51,51); text-decoration:none; overflow:hidden; white-space:nowrap; word-break:keep-all; text-overflow:ellipsis; max-width:28%; display:inline" target="_blank">Laravel学院</a></span>
</div>
<div class="source">
  <span style="float:left">原文</span>  
  <a class="cut cut70" href="http://laravelacademy.org/post/2774.html?utm_source&#61;tuicool&amp;utm_medium&#61;referral" rel="noopener noreferrer" style="color:rgb(51,51,51); text-decoration:none; overflow:hidden; white-space:nowrap; word-break:keep-all; text-overflow:ellipsis; max-width:69%; display:inline-block" target="_blank">http://laravelacademy.org/post/2774.html</a>
</div>
<div>
  <span style="margin-right:5px">主题</span>
  <a href="http://www.tuicool.com/topics/11120025" rel="noopener noreferrer" style="color:rgb(51,51,51); text-decoration:none" target="_blank"><span class="new-label" style="display:inline-block; padding:2px 4px; font-size:0.9em; line-height:16px; vertical-align:baseline; white-space:nowrap; color:rgb(120,120,120); margin-right:5px; background-color:rgb(242,242,242)">Laravel</span></a>
</div>
</div>
<div class="article_body" id="nei" style="padding:20px 5px 25px; margin-bottom:0px; overflow-x:hidden; word-wrap:break-word; word-break:break-word; min-height:340px; font-size:16px; line-height:1.7em; color:rgb(51,51,51); font-family:&#39;Helvetica Neue&#39;,Helvetica,Tahoma,Arial,STXihei,&#39;Microsoft YaHei&#39;,微软雅黑,sans-serif">
<div style="line-height:1.7em">
  <p style="margin-top:0px; margin-bottom:0.75em; line-height:1.7em; text-indent:1em"> <img alt="" class="alignCenter" src="https://beijingoptbbs.oss-cn-beijing.aliyuncs.com/cs/5606289-646fc6de210ac9519afebeb01cf026fe" style="max-width:96%; height:auto; vertical-align:middle; border:0px none; margin:0px auto 10px; text-align:center; display:block"></p>
  <h3 style="margin:0px 0px 0.5em; font-family:inherit; line-height:1.6em; color:inherit; font-size:18px; text-indent:1em"> 1、简介</h3>
  <p style="margin-top:0px; margin-bottom:0.75em; line-height:1.7em; text-indent:1em"> <a href="http://laravelacademy.org/tags/laravel" rel="noopener noreferrer" style="color:rgb(148,148,148); text-decoration:none; border-bottom-width:1px; border-bottom-style:dashed; border-bottom-color:rgb(148,148,148); font-style:italic; font-weight:bold" target="_blank">Laravel</a> Debugbar 在 Laravel 5 中集成了 <a href="http://phpdebugbar.com/" rel="noopener noreferrer" style="color:rgb(148,148,148); text-decoration:none; border-bottom-width:1px; border-bottom-style:dashed; border-bottom-color:rgb(148,148,148); font-style:italic; font-weight:bold" target="_blank">PHP Debug Bar</a> ,用于显示调试及错误信息以方便开发。该扩展包包含了一个 ServiceProvider 用于注册调试条及开发过程中数据集合显示,你可以发布其前端资源和配置,还可以配置显示重定向及 Ajax 请求。</p>
  <div style="line-height:1.7em">
   <p style="margin-top:0px; margin-bottom:0.75em; line-height:1.7em; text-indent:1em"> 注意:只能在开发过程中使用该 Laravel Debugbar ,使用该扩展包对性能有影响(收集、聚合数据有系统开销)。</p>
  </div>
  <p style="margin-top:0px; margin-bottom:0.75em; line-height:1.7em; text-indent:1em"> 该扩展包包含以下自定义收集器:</p>
  <ul style="padding:0px; margin:0px 0px 0.75em 25px; list-style-type:none; line-height:1.7em"><li style="line-height:1.7em; list-style-type:disc">QueryCollector:显示所有查询,包含绑定和时间</li><li style="line-height:1.7em; list-style-type:disc">RouteCollector:显示当前路由信息</li><li style="line-height:1.7em; list-style-type:disc">ViewCollector:显示当前加载的视图(可选:显示共享数据)</li><li style="line-height:1.7em; list-style-type:disc">EventsCollector:显示所有事件</li><li style="line-height:1.7em; list-style-type:disc">LaravelCollector:显示Laravel版本和环境</li><li style="line-height:1.7em; list-style-type:disc">SymfonyRequestCollector:替换 RequestCollector,显示关于请求/响应的更多信息</li><li style="line-height:1.7em; list-style-type:disc">LogsCollector:显示来自日志文件的最新日志条目</li><li style="line-height:1.7em; list-style-type:disc">FilesCollector:显示 PHP include/require 的文件</li><li style="line-height:1.7em; list-style-type:disc">ConfigCollecto
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP