Debugging tools for PHP
The recommended way to install is through Composer:
composer require xicrow/php-debug:~5.0
OR
composer require --dev xicrow/php-debug:~5.0
Optionally add it to your composer.json
file:
{
"require": {
"xicrow/php-debug": "~5.0"
}
}
OR
{
"require-dev": {
"xicrow/php-debug": "~5.0"
}
}
See examples in the demo
folder.
View the seperate readme for:
Debug functions for displaying variable information, pr(), vd(), etc.
Implemented, available inDebugger
classCollection class for Timer::$timers, and maybe others
Implemented, available inCollection
class
Removed, too memory hungryMemory class for measuring memory usage
Implemented, available inMemory
class
Removed, too unreliableImprove Timer and Memory, perhaps a Profiler class
Implemented, available inProfiler
class
Removed, along with MemoryAdd PHPunit tests
Implemented, now remeber to keep them updatedImprove Debugger, foldable tree of arrays/objects
Skipped, not sensible to do, clutter with either HTML or JS/CSS- Groupable timers, timers with the same name will be grouped and min, max and average will be calculated (activate when stopping a timer)
- Update example demo output in Debugger and Timer README
Update to PHP 7.4Done Implemented type declarations, return types, etc. Implemented type prefixed variables- Change option arrays to explicit variables or option classes Fixed in most places, just need the rest
Copyright © 2018 Jan Ebsen Licensed under the MIT license.