Welcome Guest, Not a member yet? Register   Sign In
Debug Toolbar
#1

[eluser]Kon Wilms[/eluser]
I have made some changes and improvements to the 0.1 Debug Toolbar and packaged it into a 0.2 'release'.

Tested on 1.7.2 and has a number of additions/changes. Ofcourse this is for debug only and will impede the performance of your site -- hence I have also added the optional flag debug_key to call the toolbar on demand.

Enjoy.

CI Debug Toolbar
Version 0.2

This is a modified version of the original debug toolbar for CI ported from Kohana

Copyright

- based on Kohana Debug Toolbar by Aaron Forsander (http://pifantastic.com/kohana-debug-toolbar/)
- 0.1 ported to CodeIgniter by quark ([email protected])
- 0.2 additions by Kon Wilms ([email protected])

Installation

- copy assets folder to webroot
- copy all other content to respective application subdirectories
- enable hooks in application config
- add the following to config/hooks config:
Code:
$hook['display_override'] = array(
    'class' => 'debug_toolbar',
    'function' => 'render',
    'filename' => 'debug_toolbar.php',
    'filepath' => 'hooks'
  );
- configure the config/debug_toolbar config

Additions/Changes

- config files are generically parsed for all contents
- matchbox config files are supported and are listed as modules:/name/config
- menu graphic changed
- some js/css modifications taken from the kohana debug_toolbar (alignment)
- added ability to list files called
- debug bar can be enabled if hidden with a debug_key passed as a $_GET parameter
- changed all names to debug_toolbar to simplify maintenance
- assets moved and categorized

Debug_key Functionality

- edit the debug_toolbar config, set render to FALSE, set a key, and modify the following):
- edit the application config
Code:
$config['uri_protocol'] = "PATH_INFO";
...
$config['enable_query_strings'] = TRUE;

Fin.

Edit: Attached a preview image of 0.2.
#2

[eluser]Shanto[/eluser]
Its help a lot to develop application. Thanks you and thanks to original developer.
#3

[eluser]trice22[/eluser]
That sure looks interesting. Thanks a lot!
#4

[eluser]eoinmcg[/eluser]
hey konfoo!

this looks great. many thanks for sharing.
#5

[eluser]Dewos[/eluser]
Nice! Thanks.
#6

[eluser]CIfan[/eluser]
Thx!

In Codeigniter 2.0 I get this message when the 'benchmarks' panel is enabled, could you help?

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: CI_Benchmark::$checkpoints

Filename: hooks/debug_toolbar.php

Line Number: 121
#7

[eluser]michalsn[/eluser]
Move "MY_Benchmark.php" file from "application/libraries" to "application/core". It should work.
#8

[eluser]Bas Vermeulen[/eluser]
Awesome tool michalsn!

I can confirm that moving MY_Benchmark.php to the /application/core folder works Smile

Cheers m8!
#9

[eluser]CIfan[/eluser]
[quote author="michalsn" date="1288390888"]Move "MY_Benchmark.php" file from "application/libraries" to "application/core". It should work.[/quote]
Thx, used it in my first CI2 install... Smile
#10

[eluser]bjora857[/eluser]
[quote author="michalsn" date="1288390888"]Move "MY_Benchmark.php" file from "application/libraries" to "application/core". It should work.[/quote]

Should I do the same when using it with 1.72?

I get the same error, and I cant find a core directory in application folder




Theme © iAndrew 2016 - Forum software by © MyBB