pa-ulander / debug
simple and old, very old, old school debugging for php scripts
Installs: 2 682
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: ^5.0
This package is auto-updated.
Last update: 2025-07-22 02:16:24 UTC
README
Simple old school debug class from early php5 days.
Can be handy still to this day for quick debugging in old legacy projects.
Does one thing only. Sort of a super-stupid console.log for php.
Dumps to screen or logfile.
Install:
composer require --dev "pa-ulander/debug @dev"
In composer.json add to autoload:
"autoload-dev": { "psr-0": { "debug": "vendor/pa-ulander/debug" } },
Use:
new \debug\debug($some_thing_to_debug); // logs to screen new \debug\debug($some_thing_to_debug, 1); // logs to file new \debug\debug($some_thing_to_debug, 2); // logs to file with backtrace