-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0] Improve DebugBar: view history, allow debug POST and non HTML requests, replace json storage to own #22327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Drone failure 'InstallCest: Configure joomla' seems not related to current PR |
|
I have tested this item ✅ successfully on 0e51812 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22327. |
| public function find(array $filters = array(), $max = 20, $offset = 0) | ||
| { | ||
| // Loop through all .php files and remember the modified time and id. | ||
| $files = array(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can use short array syntax here?
Edit: also above and below...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it just a copy paste from original FileStorage, but okay
plugins/system/debug/debug.php
Outdated
| return; | ||
| } | ||
|
|
||
| if ('com_content' === $this->app->input->get('option') && 'debug' === $this->app->input->get('view')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you just remove this whole if statement please. I don't think that we will add a view to com_content - ever..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, I thought it already something on the way 😄
|
wow |
|
I have tested this item ✅ successfully on 0e51812 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22327. |
| $dataStr = file_get_contents($this->makeFilename($id)); | ||
| $dataStr = str_replace('<?php die(); ?>#(^-^)#', '', $dataStr); | ||
|
|
||
| return json_decode($dataStr, true) ?: array(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to []
|
Thanks |
Summary of Changes
The patch add possibility to view a Debug log, by use of DebugBar\OpenHandler.
It allows to debug POST (when #20677 will be merged to 4.0-dev) and non HTML request., and view of debug history.
Also I have changed default '.json' storage to '.php', wich is more secure.
Testing Instructions
Apply path, enable debug. Visit a couple pages on a site.
Open debug bar, you should be able to see a little folder icon.
Click on that folder and you will see Debug history per page.

Ping @elkuku
Reference to DebugBar pr #20380