Skip to content

Releases: bkdotcom/PHPDebugConsole

v2.1

05 May 02:24
Compare
Choose a tag to compare
  • 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

02 Feb 20:21
Compare
Choose a tag to compare
  • 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!
  • 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

26 Jan 03:22
Compare
Choose a tag to compare

emailLog fix
additional unit tests
hhvm passes unit tests

v2.0

27 Dec 03:15
Compare
Choose a tag to compare

Changes too numerous
See changelog

v1.3.2

25 Aug 03:31
Compare
Choose a tag to compare

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

06 May 03:21
Compare
Choose a tag to compare
  • 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 if call_user_func was in the stack trace
  • emailThrottledSummary : new option to disable email summary of throttled errors

v1.3

01 Apr 03:39
Compare
Choose a tag to compare

1.3 introduces awesome object debugging, more output options, ability to specify email method, and more

v1.3b2

17 Mar 16:34
Compare
Choose a tag to compare

Object constants are now debugged
__debugInfo magic method now used if defined
collapsed groups containing error or warnings now git a visual indicator
fixed critical issue with reflectionProperty::getDocComment() (issue #13)
other minor bug fixes

v1.3b

27 Feb 03:12
Compare
Choose a tag to compare

Much more detailed object output
New outputAs option to output log to browser console... <script> is generated containing console.xxxx calls
New emailFunc option.. to specify a function/callable other than PHP's mail function for emailing
and more

v1.2.1

23 Dec 16:15
Compare
Choose a tag to compare

handful of bug fixes.

tweak to the time() methods / added a timeGet() method