pa-ulander/debug

There is no license information available for the latest version (v0.1.0) of this package.

simple and old, very old, old school debugging for php scripts

v0.1.0 2019-04-15 15:38 UTC

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