DebugBar is a free and open-source application that can be integrated into any PHP project and collect and display analysis data. It has no dependencies and supports Ajax requests, including common data collectors and collectors of common development libraries. I believe that anyone who has used Laravel's debugging tool will feel this...
DebugBar is a free and open-source application that can be integrated into any PHP project and collect and display analysis data.
It has no dependencies and supports Ajax requests, including common data collectors and collectors of common development libraries.
I believe that those who have used Laravel's debugging tool feel that this tool is very powerful and easy to use, greatly improving the programmer's production efficiency. In fact, Laravel is an open-source tool.php-debugbar
Upgraded.
Maximebf/php-debugbar
Usage 1. download the package
composer require maximebf/debugbar
2. usage
getJavascriptRenderer();$debugbar["messages"]->addMessage("hello world!");?>
renderHead() ?> ...
render() ?>
3. handling of static resources not loaded
If the static resources of the package are not loaded during use, you need to modify the source code because the static resource path of the source code cannot be found on the local server, the source code root URL uses the relative path under the server, for example:http://localhost/vendor/maximebf/debugbar/src/DebugBar/Resourc
This path, while our package is placed under the serverhttp://localhost/web/php-debugbar/vendor/maximebf/debugbar/src/DebugBar/Resourc
In this directory, you needJavascriptRenderer.php
File$baseUrl
Modify this variable:
File location:
vendor/maximebf/debugbar/src/DebugBar/JavascriptRenderer.php
// The original $ baseUrl = '/vendor/maximebf/debugbar/src/DebugBar/resources'; // after modification, only one vertex indicating the current path is added ". "$ baseUrl = '. /vendor/maximebf/debugbar/src/DebugBar/Resources ';
The above section details how to use the open-source DebugBar tool to Debug PHP code (text). For more information, see other related articles in the first PHP community!