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

Classes and functions for handling debug

Maintainers

👁 overclokk

Package info

github.com/ItalyStrap/debug

pkg:composer/italystrap/debug

Statistics

Installs: 4 300

Dependents: 16

Suggesters: 0

Stars: 0

Open Issues: 0

2.1.0 2019-12-27 15:19 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Unknown License 0c952e768d2e42d3b8af2a9a210c9eedc026c0f9

  • overclokk <info.woop@overclokk.net>

This package is auto-updated.

Last update: 2026-06-29 01:34:56 UTC


README

👁 Latest Stable Version
👁 Total Downloads
👁 Latest Unstable Version
👁 License
👁 PHP from Packagist

Classes and functions for handling debugging

Table Of Contents

Installation

The best way to use this package is through Composer:

composer require italystrap/debug

Basic Usage

Simply add the below code into your wp-config.php file

<?php
define( 'WP_DEBUG', true ); // Load helpers for debugging
define( 'WP_DEBUG_LOG', true ); // Write to debug.log file
define( 'WP_DEBUG_DISPLAY', false ); // Optional
@ini_set( 'display_errors', 0 ); // Optional
define( 'SCRIPT_DEBUG', true );
define( 'SAVEQUERIES', true );

define( 'ITALYSTRAP_DEBUG', true ); // Load helpers for debugging

Now you can use:

<?php
d();
debug( $log );

For handling php errors it will be use Whoops that will display a screen with the full stack of information about the error.

Advanced Usage

TODO

Contributing

All feedback / bug reports / pull requests are welcome.

License

Copyright (c) 2019 Enea Overclokk, ItalyStrap

This code is licensed under the MIT.

Credits

TODO