Last Update: April, 2017
PHP Debug is single file API for tracing PHP applications.
See https://github.com/AndovaBegarin/debug to view the source code and
documentation (which is included in the archive).
You can add, with minimal impact, diagnostics to be displayed upon program
termination. Each diagnostic contains file, function and caller function
information as well.
Just an API, not a class. Just include the debug.php file and add debug()
calls throughout your code similar to var_dump(). However, the diagnostic
messages are stored and displayed as a list at program termination. The
diagnostics can be disabled and controlled in other ways.
It's small and simple yet very versatile and includes demonstration/testing
(It's grown to almost 700 lines! But this version is probably the peak of
development, - though I said that last time - with only minor fixes or
enhancements from now on.)