Skip to content

Releases: bkdotcom/PHPDebugConsole

v2.3

04 Jan 03:43

Choose a tag to compare

  • PSR-3 (logger) implementation
  • "Channels" (akin to monolog's channels) - see getChannel()
  • New methods:
    • countReset
    • getChannel
    • getHeaders
    • profile
    • profileEnd
    • timeLog
  • misc bug fixes
  • misc UI enhancements

see complete changelog

v2.2

19 Jun 04:19

Choose a tag to compare

  • Added clear() method
  • Custom methods can now be called statically like core methods
  • Issues when leaving summary groups open and outputting as HTML
  • some \bdk\Debug\Utilities methods beefed up & now more useful outside debugger (arrayPathGet, arrayMergeDeep, & getCallerInfo)

v2.1.1

22 May 02:06

Choose a tag to compare

Maintenance release

  • setCfg('string', newValue) not properly returning previous value.. symptom: collect is always on. Bug introduced in v2.1. Unit-test added.
  • Chromelogger - invalid javascript console methods need to be mapped to log()
  • Script - invalid javascript console methods need to be be mapped to log()
    return value added to debug.outputLogEntry event.
  • alert() now publishes debug.outputLogEntry when being output
    \bdk\Debug\Utilities::buildAttribString() - now with more utility
  • Can now instantiate via static method call, ie \bdk\Debug::_setConfig(), \bdk\Debug::_log('collect is false, so this is pointless'), etc.

v2.1

05 May 02:24

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

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

Choose a tag to compare

emailLog fix
additional unit tests
hhvm passes unit tests

v2.0

27 Dec 03:15

Choose a tag to compare

Changes too numerous
See changelog

v1.3.2

25 Aug 03:31

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

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

Choose a tag to compare

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