Debugger for Yii 1.1 ported from Yii 2
Good day, colleagues!
Recently, the development team of the Yii 2 framework has pleased the community with a native debug panel. An important feature of this debugger is that it writes history, and makes it possible to examine debugging information from each request to a yii-project. This makes it simple and enjoyable to debug ajax requests, redirected pages, rendering graphic images and more.
The appearance and principle of using one of the earlier versions of the debugger in Yii 2 can be seen in the video of Alexander Makarov ( SamDark ):
Inspired by this wonderful tool, I decided to port it to Yii 1.1. The code that ended up can be viewed on github .
To install a debugger in your project, you need to download the sources and add the project config with the necessary minimum settings:
The following properties are available to fine-tune the Yii2Debug component:
In conclusion, I would like to add that the debugger can be supplemented with its panels with debugging data. For each such panel it is necessary: to develop your own class inheriting it from Yii2DebugPanel, and add it to the panels array of the Yii2Debug component.
Thanks for attention. I hope this extension will make your work with Yii even more comfortable. I would be grateful for bug reports and sensible ideas. Special thanks to the Yii development team for their work and their bright minds.
Code on github
Discussion on yiiframework.ru
Code of the native debugger Yii 2 on github
Recently, the development team of the Yii 2 framework has pleased the community with a native debug panel. An important feature of this debugger is that it writes history, and makes it possible to examine debugging information from each request to a yii-project. This makes it simple and enjoyable to debug ajax requests, redirected pages, rendering graphic images and more.
The appearance and principle of using one of the earlier versions of the debugger in Yii 2 can be seen in the video of Alexander Makarov ( SamDark ):
Inspired by this wonderful tool, I decided to port it to Yii 1.1. The code that ended up can be viewed on github .
Debugger appearance (in pictures)
Minimized panel with summary information on the yii-project page. All blocks on the panel are clickable, links lead to pages for a detailed view of debugging data.

Configuration page.

Drop-down list with links to the last 10 queries.

Request Page.

The Logs Page.

The Database page with a list of sql queries and information on database connections.

History.


Configuration page.

Drop-down list with links to the last 10 queries.

Request Page.

The Logs Page.

The Database page with a list of sql queries and information on database connections.

History.

Installation and setup
To install a debugger in your project, you need to download the sources and add the project config with the necessary minimum settings:
return array(
'preload' => array(
'debug',
),
'components' => array(
'debug' => array(
'class' => 'ext.yii2-debug.Yii2Debug',
),
'db' => array(
'enableProfiling' => true,
'enableParamLogging' => true,
),
),
);
The following properties are available to fine-tune the Yii2Debug component:
enabled- enable / disable debugger.allowedIPs- ip list that is allowed access to the debugger.logPath- path to record logs.historySize- maximum number of logs recorded. Earlier logs will be deleted.highlightCode- code highlighting. Sql queries and php data arrays are highlighted.panels- an array of panels connected to the debugger.moduleId- Module ID for viewing previously saved data.
In conclusion, I would like to add that the debugger can be supplemented with its panels with debugging data. For each such panel it is necessary: to develop your own class inheriting it from Yii2DebugPanel, and add it to the panels array of the Yii2Debug component.
Thanks for attention. I hope this extension will make your work with Yii even more comfortable. I would be grateful for bug reports and sensible ideas. Special thanks to the Yii development team for their work and their bright minds.
Code on github
Discussion on yiiframework.ru
Code of the native debugger Yii 2 on github