Skip to content

v2.1

Choose a tag to compare

@bkdotcom bkdotcom released this 05 May 02:24
· 1250 commits to master since this release
  • 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