idealogica/debug

Debugging tools: Symfony VarDumper and Chrome Logger in one package.

1.1.3 2019-09-12 09:23 UTC

This package is auto-updated.

Last update: 2024-11-12 20:37:36 UTC


README

Installation

composer require idealogica/debug:~1.1.0

How to use?

There are few global functions provided by this package that can be used for any kind of debugging:

dump()

Dumps given arguments using symfony/var-dumper.

dd(), _dump()

Dumps given arguments using symfony/var-dumper and stops execution.

trace()

Prints backtrace in HTML or CLI mode.

var_dump()

Build-in PHP function.

var_dd(), _var_dump()

Dumps given arguments using var_dump (build-in PHP function) and stops execution.

var_trace()

Prints backtrace.

js_dump()

Dumps given arguments using Javascript (console::log).

js_dd(), _js_dump()

Dumps given arguments using Javascript (console::log) and stops execution.

js_trace()

Sends backtrace using Javascript (console::log).

cl_dump()

Dumps given arguments using Chrome Logger.

cl_dd(), _cl_dump()

Dumps given arguments using Chrome Logger and stops execution.

cl_trace()

Sends backtrace using Chrome Logger.

profile()

Calculates code execution time. Call it twice to get time in seconds between these calls.

License

Licensed under a MIT License.