Releases: bkdotcom/PHPDebugConsole
Releases · bkdotcom/PHPDebugConsole
v2.1
- Custom methods: add your own custom methods by subscribing to the debug.log and/or debug.outputLogEntry events
- Remove internal frames from fatal error trace (2.0.2 Regression)
- Notice thrown when handling a fatal error with xdebug enabled & no backtrace frames
- count()
- optional 2nd param : Disable increment and/or output
- when not using a label, file & line logged as meta data - output as title attribute for html
- groupSummary() calls can now be nested & other groupSummary improvements
- table()
- Now accepts a Traversable object as param. Array-o-traversable was already a thing, but top-level Traversable had been overlooked
- Just display stringified or __toString value if applicable
- setting outputAs now clears previous value (unsubscribes events)
- (to use multiple output plugins/routes, use $debug->addPlugin())
- POST requests : display php://input and content-type if $_POST is empty
- debug.objAbstractStart event : reflector, hist, & debugMethod values now avail to subscribers
- ChromeLogger & Script output now get stylish alerts
- New config option: onEUserError gives control of E_USER_ERROR behavior
- Internal
- ErrorHandler and ErrorEmailer moved outside of bdk\Debug namespace / have no dependencies
- Output classes now in Output namespace & implement OutputInterface
- separate method & args in data.log
- store some args as meta for alert(), table(), & groupSummary()
- debug.output event now only published if cfg.output == true
- moderate performance gains by using absolute function references (ie \func_get_args())
- more unit tests
v2.0.2
-
Fix regression with 2.0.1..
- Fatal errors not displayed via any output option that internally outputs via onOutput event (html, script, firephp, chromeLogger, Text)
uneffected: file & wamp (both use onLog event) - unit test added to assert that errorHandler's onShutdown subscriber comes before debug's onShutdown subscriber.. which is possible now that shutdown is being delegated through eventManager rather than using
register_shutdown_function()
- nifty!
- Fatal errors not displayed via any output option that internally outputs via onOutput event (html, script, firephp, chromeLogger, Text)
-
Debug singleton can now be created via
_getInstance()
and_setCfg()
static methods (ie, _method static methods can be called before debug instantiated via new\bdk\Debug()
or\bdk\Debug::getInstance()
)
ie, can now
// no prior debug initialization...
\bdk\Debug::_setCfg(array('collect'=>true,'output'=>true));
\bdk\Debug::_log('hello world');
v2.0.1
v2.0
v1.3.2
Fix
- PHPDoc comment parsing - fixed PREG overflow issue on long comments
Additions & Tweaks
- plain-text output method added
- CLI debugging defaults to text
- HTTP_REFERER now included in error email
- request uri and method now included debug-log email body
- extends and implements info now output for objects
- added special case for debugging DOMNodeList objects... now displays the public yet "hidden" length property
- improved toUtf8 utility method
- minor css tweaks
- get() and set() now only have access to configuration
- added dataGet() and dataSet() methods for directly interacting with the log data
- timeEnd() and timeGet() accept a template. default: "%label: %time"
Internal changes
- moved code to "src" folder
- Utilizing Travis-CI for PHPUnit tests
- Added and organized unit tests..
- moved configuration to new Config class
- removed protected property "collect"... simply use cfg['collect']
v1.3.1
- Bug fix: nested arrays weren't being output via the
table()
method - HTML output now has a checkbox to toggle passing the debug param via cookie
- Bug fix:
setErrorCaller
may fail to resolve calling file/line ifcall_user_func
was in the stack trace emailThrottledSummary
: new option to disable email summary of throttled errors