biakaveron / debug-toolbar Goto Github PK
View Code? Open in Web Editor NEWKohana Debug Toolbar, ko3 version
Kohana Debug Toolbar, ko3 version
Hi,
I've taken your code and refactored it to do a couple of things (not sure if I broke anything though) and it's fairly major so I'm not sure if I should do a fork + pull request. Here are the changes I have made:
TODO
What do you think?
Thanks,
Chris
Can you add $_FILES into "vars" tabs? It's very helpful when debugging file uploads.
I've just installed and applied toolbar in Kohana::modules() (did not call Debugtoolbar::render()) and I have this error:
Fatal error: Call to a member function as_array() on a non-object in C:\OpenServer\domains\cmf1\modules\debug-toolbar\classes\Kohana\Debugtoolbar.php on line 499
Seems like the project is missing a license. Could you please specify what license it is released under?
KDT should ignore some routes (css, js etc). This is important if auto_render is ON
Is there a way to add in a custom tab information from anywhere in the application?
Like showing debug information of own modules or classes in an extra tab.
For example in a static function:
Debugtoolbar::add_tab('tabname',Kohana::debug($some_variable));
I don't want to change your module if there is anything like this planed.
Sometimes KDT should return template (string) instead of rendering.
Собственно ошибка в том, что панель выводится во всех случаях, не учитывая mime контента.
Это не правильно на мой взгляд. Предлагаю следующее возможное решение в лоб:
В DebugToolbar::is_enabled
после проверки что запрос не пустой и не ajax добавляем проверку mime контента.
Что-то типа такого:
$all_headers = headers_list();
foreach($all_headers as $header)
{
list($key, $value) = explode(': ',$header);
if (strcasecmp('content-type', $key) == 0 AND strcasecmp('text/html', $value) != 0)
{
return FALSE;
}
}
Панель нам нужна только при просмотре html страниц, соответственно для всех других страниц/типов ответа она должна блокироваться.
Если найдется более удобное решение то неплохо было бы на него посмотреть.
Auto_render = true option does not display the toolbar in the debug interface, but via Firebug can view information on the toolbar.
But when the auto_render = false toolbar displays correctly.
Always IN_PRODUCTION = false in my development environment
There should be the opposite?
На вкладке Ajax не отображается информация при использовании jQuery ajax запросов. Kohana 3.3, jQuey версии 1.10.1 (другие также пробовал).
Please add a readme...
I just have no idea how use your lib! Need to read the code now.
панель не должна отрисовываться, если выполнение прервано с bootstrap.php. Т.е., если запрос еще не создан.
Вот тут необходимо добавить вот это:
if (Request::initial() == NULL OR Request::initial()->is_ajax())
Думаю должно помочь.
Должно быть:
// Render Debug Toolbar on the end of application execution
if (Kohana::$config->load('debug_toolbar.auto_render') === TRUE)
{
register_shutdown_function('Debugtoolbar::render');
}
I don't see anything in the session variable.
Is this because I'm using the database for session management, and the connection is closed by the time ::render is called as a registered shutdown function?
Hi there,
it would be nice if this module would be conform to the kohana codestyle conventions because my jenkins shows me more than 500 warnings. Especially the firephp.php is a problem. And if i do it all changes will be gone on the next update.
What do you think?
Cheers
Chris
Есть идеи по добавлению функционала (заимствованы из http://alertdevelop.ru/projects/profilertoolbar ):
http://github.com/cadorn/firephp-libs :
THIS PROJECT HAS MOVED TO THE FOLLOWING REPOSITORIES:
https://github.com/firephp/firephp
https://github.com/firephp/firephp-core
Hello!
Maybe it will be easier to store images in CSS file? At this moment images can be easily moved into CSS (and placed as backgroud to each block where they are used) and base64 encoded...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.