codecamp

调试工具栏和调试器(Debug Toolbar and Debugger)

Debug Extension for Yii 2

This extension provides a debugger for Yii 2 applications. When this extension is used, a debugger toolbar will appear at the bottom of every page. The extension also provides a set of standalone pages to display more detailed debug information.

The toolbar displays information about the currently opened page, while the debugger can be used to analyze data you've previously collected (i.e., to confirm the values of variables).

Out of the box these tools allow you to:

  • quickly get the framework version, PHP version, response status, current controller and action, performance info and more via toolbar;
  • browse the application and PHP configuration;
  • view the request data, request and response headers, session data, and environment variables;
  • see, search, and filter the logs;
  • view any profiling results;
  • view the database queries executed by the page;
  • view the emails sent by the application.

All of this information will be available per request, allowing you to revisit the information for past requests as well.

Getting Started

Additional topics

错误处理(Error Handling)
使用 Gii 生成代码(Generating Code using Gii)
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }