Yii Framework Forum: Yii Debug Toolbar - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii Debug Toolbar A configurable set of panels that display various debug information Rate Topic: -----

#1 User is offline   Skinner 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 15-April 10

Posted 20 June 2011 - 02:56 PM

The Yii Debug Toolbar is a configurable set of panels that display various
debug information about the current request/response and when clicked, display
more details about the panel's content.

It is a ported to PHP famous Django Debug Toolbar.

Currently, the following panels have been written and are working:

- Server info
- Request timer
- A list of superglobals
- Application settings
- SQL queries including time to execute and param bindings
- Logging output via Yii built-in logging

Installation

Download source from GitHub.

Extract the `yii-debug-toolbar` from archive under protected/extensions.

Usage and Configuration

For use `yii-debug-toolbar` need to specify new `route` in `log` component:

 'log'=>array(
        'class'=>'CLogRouter',
        'routes'=>array(
            array(
                'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
                'ipFilters'=>array('127.0.0.1','192.168.1.215'),
            ),
        ),
    ),


Make sure your IP is listed in the `ipFilters` setting. If you are working locally this option not required.

TODOs and BUGS

See: https://github.com/m...-toolbar/issues

Working preview

Posted Image

Posted Image
1

#2 User is offline   imehesz 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 670
  • Joined: 13-June 09
  • Location:Jacksonville, FL

Posted 20 June 2011 - 03:50 PM

hi,

this looks cool! why don't you put it here http://www.yiiframework.com/extension

--iM
It’s done, the great act of creation.
The maker rests. The wheel’s in motion.
-- Imre Madách

check out Yii Themes at http://yiithemes.mehesz.net
0

#3 User is offline   siskalandre 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 92
  • Joined: 16-March 11
  • Location:Indonesia

Posted 20 June 2011 - 04:15 PM

View PostSkinner, on 20 June 2011 - 02:56 PM, said:

The Yii Debug Toolbar is a configurable set of panels that display various
debug information about the current request/response and when clicked, display
more details about the panel's content.

It is a ported to PHP famous Django Debug Toolbar.

Currently, the following panels have been written and are working:

- Server info
- Request timer
- A list of superglobals
- Application settings
- SQL queries including time to execute and param bindings
- Logging output via Yii built-in logging

Installation

Download source from GitHub.

Extract the `yii-debug-toolbar` from archive under protected/extensions.

Usage and Configuration

For use `yii-debug-toolbar` need to specify new `route` in `log` component:

 'log'=>array(
        'class'=>'CLogRouter',
        'routes'=>array(
            array(
                'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
                'ipFilters'=>array('127.0.0.1','192.168.1.215'),
            ),
        ),
    ),


Make sure your IP is listed in the `ipFilters` setting. If you are working locally this option not required.

TODOs and BUGS

See: https://github.com/m...-toolbar/issues

Working preview

Posted Image

Posted Image


very cool extension, thanks a lot
0

#4 User is offline   Skinner 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 15-April 10

Posted 21 June 2011 - 01:11 AM

View Postimehesz, on 20 June 2011 - 03:50 PM, said:

hi,

this looks cool! why don't you put it here http://www.yiiframework.com/extension

--iM



I was trying submit my extension in Yii extension directory, but could not do it, because first need to introducing in our forum. Now I see I can do it. I hope my extension will be very useful for Yii community.

If any have some todo's or bugs found please submit to project issue tracker on GitHub. Thanks a lot.
0

#5 User is offline   Rodrigo Coelho 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 645
  • Joined: 05-August 10
  • Location:Rio de Janeiro, Brazil

Posted 27 June 2011 - 07:52 PM

Very nice and good-looking extension :)
There's a similar one: yiidebugtb.
Rodrigo Coelho


Check my extension
giix: a code generator for Yii. Posted Image


The complete beginner's study guide for the Yii Framework
0

#6 User is offline   Skinner 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 15-April 10

Posted 22 September 2011 - 05:33 AM

Now is updated))

* Added SQL syntax highlighting
* Added highlighting of potentially inefficient queries
* Miscellaneous fixes and UI enhancements

---

Thank for all for ideas and assistance
0

#7 User is offline   dckurushin 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 392
  • Joined: 16-March 11
  • Location:Israel

Posted 22 September 2011 - 04:22 PM

I think a good idea for you , if you look in ZF debug, is to add
http://php.net/manua...luded-files.php

You can discover a lot of cool stuff

like here http://www.yiiframew...ngry-framework/
0

#8 User is offline   Skinner 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 15-April 10

Posted 26 September 2011 - 09:26 AM

Hello guys.

Newest version on GitHub contains new debug panel. View rendering debug panel allows to see all info about rendered view files. I glad to get your feedbacks about how it works in your applications.
0

#9 User is offline   yJeroen 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 90
  • Joined: 06-September 11
  • Location:The Netherlands

Posted 21 November 2011 - 05:46 AM

Hi Skinner,

I am trying to use Yii Debug Toolbar, but I dont see anything.

I downloaded the extension in /protected/extensions/
And my config is:
		'log'=>array(
        	'class'=>'CLogRouter',
        	'routes'=>array(
	            array(
    	            'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
        	        //If true, then after reloading the page will open the current panel
            	    'openLastPanel'=>true,
                	// Access is restricted by default to the localhost
	                'ipFilters'=>array('127.0.0.1','::1', '172.*.*.*'),
    	            //This is a list of paths to extra panels.
        	        'additionalPanels'=>array(
            	        'YiiDebugToolbarPanelExample', // add as last
                	    'prepend:YiiDebugToolbarPanelExample', // add as first
                	),
            	),
        	),
    	),


But it doesnt display any toolbar in my app.. If I set a normal route like 'class'=>'CWebLogRoute', I get the normal output at the bottom of the page.
0

#10 User is offline   Skinner 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 15-April 10

Posted 02 December 2011 - 06:12 AM

Guys! Yii Debug Toolbar has updated! Check it now! )))
0

#11 User is offline   Skinner 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 15-April 10

Posted 02 December 2011 - 06:15 AM

View PostJeroendh, on 21 November 2011 - 05:46 AM, said:

Hi Skinner,

I am trying to use Yii Debug Toolbar, but I dont see anything.

I downloaded the extension in /protected/extensions/
And my config is:
		'log'=>array(
        	'class'=>'CLogRouter',
        	'routes'=>array(
	            array(
    	            'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
        	        //If true, then after reloading the page will open the current panel
            	    'openLastPanel'=>true,
                	// Access is restricted by default to the localhost
	                'ipFilters'=>array('127.0.0.1','::1', '172.*.*.*'),
    	            //This is a list of paths to extra panels.
        	        'additionalPanels'=>array(
            	        'YiiDebugToolbarPanelExample', // add as last
                	    'prepend:YiiDebugToolbarPanelExample', // add as first
                	),
            	),
        	),
    	),


But it doesnt display any toolbar in my app.. If I set a normal route like 'class'=>'CWebLogRoute', I get the normal output at the bottom of the page.



Hey ) Use the latest version and config like that:

array(
'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
// Access is restricted by default to the localhost
'ipFilters'=>array('127.0.0.1','::1', '172.*'),
),

Additional panels functionality it 3-rd party developed and I'm not sure is it works.
0

#12 User is offline   edmondscommerce 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 02-February 12

Posted 02 February 2012 - 12:40 PM

beautiful thanks
0

#13 User is offline   deez 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 04-January 12

Posted 14 March 2012 - 05:46 PM

Hey man, very nice extension. Do you know why mine doesn't show queries? Every thing else works as expected...

Is there some config I have to set up for the queries?
0

#14 User is online   bennouna 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,120
  • Joined: 05-January 12
  • Location:Morocco

Posted 15 March 2012 - 02:03 AM

View Postdeez, on 14 March 2012 - 05:46 PM, said:

Hey man, very nice extension. Do you know why mine doesn't show queries? Every thing else works as expected...

Is there some config I have to set up for the queries?


Quote

Enable Profiling and ParamLogging for all used DB connections.


In my case, I had this displayed:

Quote

No SQL queries were recorded during this request or profiling the SQL is DISABLED.


so I just added to my config file

'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=myDB',
'emulatePrepare' => true,
'username' => 'myUsername',
'password' => 'myPwd',
'charset' => 'utf8',
'enableProfiling'=>true,
),


(I use a MySQL DB)

Btw, thanx skinner for this great extension
0

#15 User is offline   sebako 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 46
  • Joined: 15-February 12

Posted 15 March 2012 - 03:39 AM

very awesome! B)
0

#16 User is offline   A.Miguel 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 12-October 11

Posted 17 April 2012 - 11:41 AM

Hi Skinner,


This seems to be a very helpful extension. However I am not getting this toolbar working out. :(

I apologize for my "amateurism" but how can I see toolbar panels after configuring everything as documented?


Thanks in advance,
A.Miguel
0

#17 User is offline   tko 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 04-August 09

Posted 24 September 2012 - 04:49 AM

Hi,

where is the additionalPanels config gone?

Thx.

Thorsten
0

#18 User is offline   naduvko 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 05-October 11

Posted 25 April 2013 - 03:56 AM

Is there a way to disable it on specific view?
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users