Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.24 KB

readme.md

File metadata and controls

54 lines (35 loc) · 1.24 KB

Debugging tools: Symfony VarDumper and Chrome Logger in one package

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.